From 3ace5f58429d39830a535d9b29fc4d2a47cc8984 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Tue, 16 Apr 2013 08:10:18 +0200 Subject: [PATCH] install_name_tool magic --- ykpers4mac.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ykpers4mac.mk b/ykpers4mac.mk index 00cd7cf..1060221 100644 --- a/ykpers4mac.mk +++ b/ykpers4mac.mk @@ -53,6 +53,12 @@ ykpers4mac: cd json-c-json-c-* && \ ./configure --prefix=$(PWD)/tmp/root && \ make install $(CHECK) && \ + install_name_tool -id @executable_path/../lib/libjson-c.2.dylib $(PWD)/tmp/root/lib/libjson-c.2.dylib && \ + install_name_tool -id @executable_path/../lib/libjson-c.2.dylib $(PWD)/tmp/root/lib/libjson-c.dylib && \ + install_name_tool -id @executable_path/../lib/libjson.0.dylib $(PWD)/tmp/root/lib/libjson.0.dylib && \ + install_name_tool -id @executable_path/../lib/libjson.0.dylib $(PWD)/tmp/root/lib/libjson.dylib && \ + install_name_tool -change $(PWD)/tmp/root/lib/libjson-c.2.dylib @executable_path/../lib/libjson-c.2 $(PWD)/tmp/root/lib/libjson.0.dylib && \ + install_name_tool -change $(PWD)/tmp/root/lib/libjson-c.2.dylib @executable_path/../lib/libjson-c.2 $(PWD)/tmp/root/lib/libjson.dylib && \ cp COPYING $(PWD)/tmp/root/licenses/json-c.txt && \ cd .. && \ cp ../libyubikey-$(LIBYUBIKEYVERSION).tar.gz . \ @@ -61,6 +67,8 @@ ykpers4mac: cd libyubikey-$(LIBYUBIKEYVERSION) && \ ./configure --prefix=$(PWD)/tmp/root && \ make install $(CHECK) && \ + install_name_tool -id @executable_path/../lib/libyubikey.0.dylib $(PWD)/tmp/root/lib/libyubikey.dylib && \ + install_name_tool -id @executable_path/../lib/libyubikey.0.dylib $(PWD)/tmp/root/lib/libyubikey.0.dylib && \ cp COPYING $(PWD)/tmp/root/licenses/libyubikey.txt && \ cd .. && \ cp ../ykpers-$(VERSION).tar.gz . \ @@ -69,6 +77,12 @@ ykpers4mac: cd ykpers-$(VERSION)/ && \ PKG_CONFIG_PATH=$(PWD)/tmp/root/lib/pkgconfig ./configure --prefix=$(PWD)/tmp/root --with-libyubikey-prefix=$(PWD)/tmp/root && \ make install $(CHECK) && \ + install_name_tool -id @executable_path/../lib/libykpers-1.1.dylib $(PWD)/tmp/root/lib/libykpers-1.dylib && \ + install_name_tool -id @executable_path/../lib/libykpers-1.1.dylib $(PWD)/tmp/root/lib/libykpers-1.1.dylib && \ + for executable in $(PWD)/tmp/root/bin/*; do \ + install_name_tool -change $(PWD)/tmp/root/lib/libyubikey.0.dylib @executable_path/../lib/libyubikey.0.dylib $$executable && \ + install_name_tool -change $(PWD)/tmp/root/lib/libykpers-1.1.dylib @executable_path/../lib/libykpers-1.1.dylib $$executable ; \ + done && \ cp COPYING $(PWD)/tmp/root/licenses/yubikey-personalization.txt && \ cd .. && \ cd root && \ -- 2.39.5