add a check for mac linking being correct

relates to #10
This commit is contained in:
Klas Lindfors
2015-01-08 14:29:43 +01:00
parent 16a71427a8
commit 860011d897
+4
View File
@@ -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 && \