static and dynamic linking works on macosx -- noch

Former-commit-id: 87f7119dfd
This commit is contained in:
Norayr Chilingarian 2014-03-21 06:53:33 +08:00
parent 12fa4aec39
commit c6d368b789
5 changed files with 27 additions and 7 deletions

View file

@ -30,7 +30,7 @@ CCOPT = -fPIC $(INCLUDEPATH) -g
CC = cc $(CCOPT) -c
CL = cc $(CCOPT)
LD = cc -dynamiclib -o $(LIBRARY).dylib
LD = libtool -dynamic -lSystem -compatibility_version $(RELEASE) -current_version $(RELEASE) -install_name $(PREFIX)/lib/$(LIBRARY).dylib -o $(LIBRARY).dylib
# s is necessary to create index inside a archive
ARCHIVE = ar rcs $(LIBRARY).a