aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 11:19:01 +0100
committerGitHub <noreply@github.com>2022-02-19 11:19:01 +0100
commit1a59f9ef848d7446e3e61344a61986332d53efba (patch)
treec99e2b037b2a337cb1d4cfec59325f243282a60d /Makefile
parentMerge pull request #15 from carlocab/macos-library-versioning (diff)
parentFix library install name in `install` target on macOS (diff)
downloadlibkeccak-1a59f9ef848d7446e3e61344a61986332d53efba.tar.gz
libkeccak-1a59f9ef848d7446e3e61344a61986332d53efba.tar.bz2
libkeccak-1a59f9ef848d7446e3e61344a61986332d53efba.tar.xz
Merge pull request #16 from carlocab/macos-install-names
Fix library install name in `install` target on macOS
Diffstat (limited to '')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a6aa425..c52fe9e 100644
--- a/Makefile
+++ b/Makefile
@@ -175,6 +175,9 @@ run-benchmark: benchmark benchfile
for i in $$(seq 7) ; do ./benchmark ; done | median
install: libkeccak.$(LIBEXT) libkeccak.a
+ifeq ($(shell uname),Darwin)
+ install_name_tool -id "$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)" libkeccak.$(LIBEXT)
+endif
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
cp -- libkeccak.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBMINOREXT)"
ln -sf -- libkeccak.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)"