Strip tools/Debug/ executables by default. Define KEEP_SYMBOLS to

turn off stripping for any executable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-09-18 11:55:13 +00:00
parent 7dbf6836bf
commit feeae58705
2 changed files with 16 additions and 2 deletions

View File

@ -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...

View File

@ -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...