[llvm-commits] CVS: llvm/Makefile.rules
Dinakar Dhurjati
dhurjati at cs.uiuc.edu
Wed Oct 29 08:29:01 PST 2003
Changes in directory llvm:
Makefile.rules updated: 1.150 -> 1.151
---
Log message:
Added TOOLLINKOPTSB to pass options to the linker (e.g. adding search
path for external libraries).
---
Diffs of the changes: (+10 -0)
Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.150 llvm/Makefile.rules:1.151
--- llvm/Makefile.rules:1.150 Tue Oct 28 13:09:28 2003
+++ llvm/Makefile.rules Wed Oct 29 08:28:35 2003
@@ -328,6 +328,16 @@
LinkO := $(Link) -O3 -L$(PROJLIBRELEASESOURCE) -L$(LLVMLIBRELEASESOURCE)
LinkP := $(Link) -O3 -L$(PROJLIBPROFILESOURCE) -L$(LLVMLIBPROFILESOURCE) $(PROFILE)
+# TOOLLINKOPTSB to pass options to the linker like library search path etc
+# Note that this is different from TOOLLINKOPTS, these options
+# are passed to the linker *before* the USEDLIBS options are passed.
+# e.g. usage TOOLLINKOPTSB = -L/home/xxx/lib
+ifdef TOOLLINKOPTSB
+LinkG := $(LinkG) $(TOOLLINKOPTSB)
+LinkO := $(LinkG) $(TOOLLINKOPTSB)
+LinkP := $(LinkG) $(TOOLLINKOPTSB)
+endif
+
# Create one .o file from a bunch of .o files...
Relink := ${LIBTOOL} --mode=link $(CXX)
More information about the llvm-commits
mailing list