From c6d368b789ec725712562aa1be8bf1fe4b3d159f Mon Sep 17 00:00:00 2001 From: Norayr Chilingarian Date: Fri, 21 Mar 2014 06:53:33 +0800 Subject: [PATCH] static and dynamic linking works on macosx -- noch Former-commit-id: 87f7119dfd52ebe995b4382383441368fe116c35 --- makefile.darwin.clang.x86_64 | 2 +- ocat | Bin 151012 -> 151012 bytes showdef.REMOVED.git-id | 2 +- src/voc/darwin/clang/extTools.Mod | 28 ++++++++++++++++++++++++---- voc.REMOVED.git-id | 2 +- 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/makefile.darwin.clang.x86_64 b/makefile.darwin.clang.x86_64 index 5a0dd466..9649f0e0 100644 --- a/makefile.darwin.clang.x86_64 +++ b/makefile.darwin.clang.x86_64 @@ -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 diff --git a/ocat b/ocat index 53abd5733a989b7bc7d8555d19c575dbf55d3eb3..a4727826442f2ef7b4d37096433a67cff723316d 100755 GIT binary patch delta 148 zcmaDdoAb$R&W0_F6^EFv7i_OO#F)p(bgf|ftHX@zxIv6r=Na{wK#Wrt8Q*~!yRI<$ zff-!a8S|JyQdPGY`#>Vox$XiPKzbI0-mZ0z(GF}})_ul4u+m?T81;BSdbHj%`av{* VVrM-LvZV+SEc}6`Z5aZNE#&=-Gt}Bdw zU