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

turn off stripping for any executable.

llvm-svn: 3812
This commit is contained in:
Vikram S. Adve 2002-09-18 11:55:13 +00:00
parent 178bf8d312
commit 6dcdeb5309
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...