summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-05 18:56:58 +0000
committerChris Lattner <sabre@nondot.org>2002-04-05 18:56:58 +0000
commitf0a88d107f18982e89fbf405d4f1db48cadfeba6 (patch)
tree85303dec099523bd6cc155c522dc5e9df0dc16b0
parente2f2f54f0c3fc0ce063f2d3a181a7a3b4ddbedb0 (diff)
downloadbcm5719-llvm-f0a88d107f18982e89fbf405d4f1db48cadfeba6.tar.gz
bcm5719-llvm-f0a88d107f18982e89fbf405d4f1db48cadfeba6.zip
* Allow purify builds to be enabled without hacking the makefile. Now you
just have to run: make ENABLE_PURIFY=1 * Add command to the link line that makes the broken GCC 3.0 compiler work without affecting 2.95.3 llvm-svn: 2116
-rw-r--r--llvm/Makefile.common7
-rw-r--r--llvm/Makefile.rules7
2 files changed, 10 insertions, 4 deletions
diff --git a/llvm/Makefile.common b/llvm/Makefile.common
index a294df77ce6..a3ac71968cc 100644
--- a/llvm/Makefile.common
+++ b/llvm/Makefile.common
@@ -63,8 +63,11 @@ CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnon
# Link final executable
# To enable purify, do it here:
-###Link = $(PURIFY) $(CXX) $(Prof) -static
-Link = $(CXX) $(Prof)
+ifdef ENABLE_PURIFY
+Link = $(PURIFY) $(CXX) $(Prof) -static
+else
+Link = LD_RUN_PATH=/usr/dcs/software/evaluation/encap/gcc-3.0.4/lib $(CXX) $(Prof)
+endif
LinkG = $(Link) -g -L $(LEVEL)/lib/Debug
LinkO = $(Link) -O3 -L $(LEVEL)/lib/Release
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index a294df77ce6..a3ac71968cc 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -63,8 +63,11 @@ CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnon
# Link final executable
# To enable purify, do it here:
-###Link = $(PURIFY) $(CXX) $(Prof) -static
-Link = $(CXX) $(Prof)
+ifdef ENABLE_PURIFY
+Link = $(PURIFY) $(CXX) $(Prof) -static
+else
+Link = LD_RUN_PATH=/usr/dcs/software/evaluation/encap/gcc-3.0.4/lib $(CXX) $(Prof)
+endif
LinkG = $(Link) -g -L $(LEVEL)/lib/Debug
LinkO = $(Link) -O3 -L $(LEVEL)/lib/Release
OpenPOWER on IntegriCloud