turn off stripping for any executable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3812
91177308-0d34-0410-b5e6-
96231b3b80d8
PROFILE =
endif
+# By default, strip symbol information from executable
+ifdef KEEP_SYMBOLS
+STRIP =
+else
+STRIP = -s
+endif
+
# Allow gnu extensions...
CPPFLAGS += -D_GNU_SOURCE
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...
PROFILE =
endif
+# By default, strip symbol information from executable
+ifdef KEEP_SYMBOLS
+STRIP =
+else
+STRIP = -s
+endif
+
# Allow gnu extensions...
CPPFLAGS += -D_GNU_SOURCE
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...