[llvm-commits] CVS: llvm/Makefile.common Makefile.Linux Makefile.SunOS

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 31 13:01:01 PST 2003


Changes in directory llvm:

Makefile.common updated: 1.75 -> 1.76
Makefile.Linux updated: 1.7 -> 1.8
Makefile.SunOS updated: 1.6 -> 1.7

---
Log message:

Fix strip issue Joel ran into


---
Diffs of the changes:

Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.75 llvm/Makefile.common:1.76
--- llvm/Makefile.common:1.75	Thu Jan 23 10:33:10 2003
+++ llvm/Makefile.common	Fri Jan 31 13:00:26 2003
@@ -142,10 +142,10 @@
 # By default, strip symbol information from executable
 ifdef KEEP_SYMBOLS
 STRIP =
-WARN_MSG =
+STRIP_WARN_MSG =
 else
-STRIP = -Wl,-x
-WARN_MSG = "(without symbols) "
+STRIP = $(PLATFORMSTRIPOPTS)
+STRIP_WARN_MSG = "(without symbols) "
 endif
 
 # Allow gnu extensions...
@@ -406,7 +406,7 @@
 	$(VERB) rm -f $(TOOLEXENAMES)
 
 $(TOOLEXENAME_G): $(ObjectsG) $(USED_LIB_PATHS_G) $(TOOLDEBUG)/.dir
-	@echo ======= Linking $(TOOLNAME) debug executable $(WARN_MSG) =======
+	@echo ======= Linking $(TOOLNAME) debug executable $(STRIP_WARN_MSG) =======
 	$(VERB) $(LinkG) -o $@ $(ObjectsG) $(USED_LIBS_OPTIONS_G) $(LINK_OPTS)
 
 $(TOOLEXENAME_O): $(ObjectsO) $(USED_LIB_PATHS_O) $(TOOLRELEASE)/.dir


Index: llvm/Makefile.Linux
diff -u llvm/Makefile.Linux:1.7 llvm/Makefile.Linux:1.8
--- llvm/Makefile.Linux:1.7	Sun Jan 12 18:13:19 2003
+++ llvm/Makefile.Linux	Fri Jan 31 13:00:26 2003
@@ -18,6 +18,10 @@
 #
 PLATFORMLINKOPTS := -Wl,--export-dynamic
 
+# PLATFORMSTRIPOPTS - Command to pass to the link phase to cause symbols to be 
+# stripped from the resultant binary.
+PLATFORMSTRIPOPTS := -Wl,-x
+
 # Path to location for LLVM front-end for this architecture.  This setting may
 # be overriden by the Makefile.config option, and should not override it if set.
 #


Index: llvm/Makefile.SunOS
diff -u llvm/Makefile.SunOS:1.6 llvm/Makefile.SunOS:1.7
--- llvm/Makefile.SunOS:1.6	Thu Dec  5 21:45:20 2002
+++ llvm/Makefile.SunOS	Fri Jan 31 13:00:26 2003
@@ -17,6 +17,13 @@
 # of mallinfo.
 PLATFORMLINKOPTS := -lmalloc
 
+# PLATFORMSTRIPOPTS - Command to pass to the link phase to cause symbols to be 
+# stripped from the resultant binary.
+#
+# FIXME: I don't know what this is for sun, so leave it alone
+#
+PLATFORMSTRIPOPTS :=
+
 # Path to location for LLVM front-end for this architecture.  This setting may
 # be overriden by the Makefile.config option, and should not override it if set.
 #





More information about the llvm-commits mailing list