From 7a7fce3c9714aecf8ac77f4e26dad6fc785e419c Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 4 Apr 2011 14:49:59 +0000 Subject: [PATCH] Link with $(CXX) instead of ld, so that C++ linking is done properly. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ebdbd56..1afbd39 100644 --- a/Makefile +++ b/Makefile @@ -49,11 +49,11 @@ all: libobjc.so.$(VERSION) libobjc.a libobjc.so.$(VERSION): $(OBJECTS) @echo Linking shared library... - @ld -shared -o $@ $(OBJECTS) + @$(CXX) -Wl,-shared -o $@ $(OBJECTS) libobjc.a: $(OBJECTS) @echo Linking static library... - @ld -r -s -o $@ $(OBJECTS) + @ld -Ur -s -o $@ $(OBJECTS) .cc.o: $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@