From 860011d89768feeed30dc1e92367038b968c8ee3 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 8 Jan 2015 14:29:43 +0100 Subject: [PATCH] add a check for mac linking being correct relates to #10 --- mac.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mac.mk b/mac.mk index 5d49c59..7115628 100644 --- a/mac.mk +++ b/mac.mk @@ -49,6 +49,10 @@ doit: install_name_tool -id @executable_path/../lib/libykpiv.dylib $(PWD)/tmp/root/lib/libykpiv.dylib && \ install_name_tool -id @executable_path/../lib/libykpiv.1.dylib $(PWD)/tmp/root/lib/libykpiv.1.dylib && \ install_name_tool -change $(PWD)/tmp/root/lib/libykpiv.1.dylib @executable_path/../lib/libykpiv.1.dylib $(PWD)/tmp/root/bin/yubico-piv-tool ; \ + if otool -L $(PWD)/tmp/root/lib/*.dylib $(PWD)/tmp/root/bin/* | grep '$(PWD)/tmp/root' | grep -q compatibility; then \ + echo "something is incorrectly linked!"; \ + exit 1; \ + fi && \ cp COPYING $(PWD)/tmp/root/licenses/$(PACKAGE).txt && \ cd .. && \ cd root && \