static and dynamic linking works on macosx -- noch

This commit is contained in:
Norayr Chilingarian 2014-03-21 06:53:33 +08:00
parent bdb2b32588
commit 87f7119dfd
5 changed files with 25 additions and 5 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