Make use of the LLVMGCCStdCXXLibDir variable to link objects
authorReid Spencer <rspencer@reidspencer.com>
Sun, 5 Dec 2004 19:15:06 +0000 (19:15 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 5 Dec 2004 19:15:06 +0000 (19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18548 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/Makefile

index a65ddc41a2488d461d679b33e7f35913a000ca18..be7b93e5a058e242a71c46a15ef3c03826eb41bf 100644 (file)
@@ -47,18 +47,18 @@ $(ObjDir)/comp_main.bc: $(MainObj)
        $(Echo) Linking $(notdir $@) component...
        $(Verb) $(GCCLD) -link-as-library \
        -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_main.lst \
-       $(MainObj) -o $@ \
+       $(MainObj) -o $@ -L$(LLVMGCCStdCXXLibDir)
 
 # Generic exception handling support runtime.
 $(ObjDir)/comp_genericeh.bc: $(GenericEHObj)
        $(Echo) Linking $(notdir $@) component...
        $(Verb) $(GCCLD) -link-as-library \
        -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_genericeh.lst \
-       $(GenericEHObj) -o $@
+       $(GenericEHObj) -o $@ -L$(LLVMGCCStdCXXLibDir)
 
 # setjmp/longjmp exception handling support runtime.
 $(ObjDir)/comp_sjljeh.bc: $(SJLJEHObj)
        $(Echo) Linking $(notdir $@) component...
        $(Verb) $(GCCLD) -link-as-library \
        -internalize-public-api-file=$(BUILD_SRC_DIR)/comp_sjljeh.lst \
-       $(SJLJEHObj) -o $@
+       $(SJLJEHObj) -o $@ -L$(LLVMGCCStdCXXLibDir)