mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
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:
parent
7dbf6836bf
commit
feeae58705
@ -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