mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:40:38 +00:00
Strip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
turn off stripping for any executable. llvm-svn: 3812
This commit is contained in:
parent
178bf8d312
commit
6dcdeb5309
@ -131,6 +131,13 @@ else
|
||||
PROFILE =
|
||||
endif
|
||||
|
||||
# By default, strip symbol information from executable
|
||||
ifdef KEEP_SYMBOLS
|
||||
STRIP =
|
||||
else
|
||||
STRIP = -s
|
||||
endif
|
||||
|
||||
# Allow gnu extensions...
|
||||
CPPFLAGS += -D_GNU_SOURCE
|
||||
|
||||
@ -149,7 +156,7 @@ Link := $(PURIFY) $(CXX) $(PROFILE) -static
|
||||
else
|
||||
Link := $(CXX) $(PROFILE)
|
||||
endif
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG)
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||
|
||||
# Create one .o file from a bunch of .o files...
|
||||
|
@ -131,6 +131,13 @@ else
|
||||
PROFILE =
|
||||
endif
|
||||
|
||||
# By default, strip symbol information from executable
|
||||
ifdef KEEP_SYMBOLS
|
||||
STRIP =
|
||||
else
|
||||
STRIP = -s
|
||||
endif
|
||||
|
||||
# Allow gnu extensions...
|
||||
CPPFLAGS += -D_GNU_SOURCE
|
||||
|
||||
@ -149,7 +156,7 @@ Link := $(PURIFY) $(CXX) $(PROFILE) -static
|
||||
else
|
||||
Link := $(CXX) $(PROFILE)
|
||||
endif
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG)
|
||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||
|
||||
# Create one .o file from a bunch of .o files...
|
||||
|
Loading…
Reference in New Issue
Block a user