Strip tools/Debug/ executables by default. Define KEEP_SYMBOLS to
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 18 Sep 2002 11:55:13 +0000 (11:55 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 18 Sep 2002 11:55:13 +0000 (11:55 +0000)
turn off stripping for any executable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3812 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index a5ee9c80f1cad278be91973a3f050823646092e4..20e2979b63b4ef51550a125647affe73d2716fa4 100644 (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...
index a5ee9c80f1cad278be91973a3f050823646092e4..20e2979b63b4ef51550a125647affe73d2716fa4 100644 (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...