diff options
-rw-r--r-- | Makefile.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 65599cc795..fb2191d4a0 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -328,6 +328,16 @@ LinkG := $(Link) -g -L$(PROJLIBDEBUGSOURCE) -L$(LLVMLIBDEBUGSOURCE) $(STRIP) 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) |