aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2011-10-30 04:40:15 +0800
committerdinoex <dinoex@FreeBSD.org>2011-10-30 04:40:15 +0800
commit3e48fd5170029e5f8a07a76c16a2233872b8f178 (patch)
tree6fbda9ad3ae7278d00cebcb87aa9d7f39a82e5ec
parent3bcabdb62d92c5e491e0322d363cd871f895069a (diff)
downloadfreebsd-ports-gnome-3e48fd5170029e5f8a07a76c16a2233872b8f178.tar.gz
freebsd-ports-gnome-3e48fd5170029e5f8a07a76c16a2233872b8f178.tar.zst
freebsd-ports-gnome-3e48fd5170029e5f8a07a76c16a2233872b8f178.zip
- honor LDFLAGS
-rw-r--r--lang/libobjc2/files/patch-Makefile6
1 files 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 $<`...