summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
blob: 3e7e139ddd603e520798819701cef85b1cf39031 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
C_SOURCES := main.c

ifeq "$(OS)" ""
    OS = $(shell uname -s)
endif

ifeq "$(OS)" "Darwin"
    LD_EXTRAS = -Xlinker -dead_strip
else
    CFLAGS_EXTRAS += -fdata-sections -ffunction-sections
    ifeq "$(OS)" "Windows_NT"
        LD_EXTRAS = -Xlinker /OPT:REF
    else
        LD_EXTRAS = -Wl,--gc-sections
    endif
endif

MAKE_DSYM := NO

include Makefile.rules