From 3e48fd5170029e5f8a07a76c16a2233872b8f178 Mon Sep 17 00:00:00 2001 From: dinoex Date: Sat, 29 Oct 2011 20:40:15 +0000 Subject: - honor LDFLAGS --- lang/libobjc2/files/patch-Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/libobjc2/files/patch-Makefile b/lang/libobjc2/files/patch-Makefile index d561210b7846..c8bcd01ecb12 100644 --- a/lang/libobjc2/files/patch-Makefile +++ b/lang/libobjc2/files/patch-Makefile @@ -25,17 +25,17 @@ libobjcxx.so.$(VERSION): libobjc.so.$(VERSION) $(OBJCXX_OBJECTS) @echo Linking shared Objective-C++ runtime library... - @$(CXX) -Wl,-shared -o $@ $(OBJCXX_OBJECTS) -lobjc -+ $(LD) -shared -o $@ $(OBJCXX_OBJECTS) -lobjc ++ $(LD) $(LDFLAGS) -shared -o $@ $(OBJCXX_OBJECTS) -lobjc libobjc.so.$(VERSION): $(OBJECTS) @echo Linking shared Objective-C runtime library... - @ld -shared -o $@ $(OBJECTS) -+ $(LD) -shared -o $@ $(OBJECTS) ++ $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS) libobjc.a: $(OBJECTS) @echo Linking static Objective-C runtime library... - @ld -r -s -o $@ $(OBJECTS) -+ $(LD) -r -s -o $@ $(OBJECTS) ++ $(LD) $(LDFLAGS) -r -s -o $@ $(OBJECTS) .cc.o: @echo Compiling `basename $<`... -- cgit