Link with $(CXX) instead of ld, so that C++ linking is done properly.

main
theraven 15 years ago
parent 3eb0ecb96b
commit 7a7fce3c97

@ -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 $@

Loading…
Cancel
Save