aboutsummaryrefslogtreecommitdiffstats
path: root/macos.mk
diff options
context:
space:
mode:
authorCarlo Cabrera <30379873+carlocab@users.noreply.github.com>2022-02-19 22:46:57 +0800
committerCarlo Cabrera <30379873+carlocab@users.noreply.github.com>2022-02-19 22:46:57 +0800
commitbda62bccc3f99a41c830a00114d255473e8da5a8 (patch)
treed23812f325d72146aa2ab755b8cdc062da80de11 /macos.mk
parentSet install name in `LIBFLAGS` (diff)
downloadlibkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.gz
libkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.bz2
libkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.xz
Set install name for installed library
Diffstat (limited to '')
-rw-r--r--macos.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/macos.mk b/macos.mk
index 58afc20..83b6515 100644
--- a/macos.mk
+++ b/macos.mk
@@ -1,6 +1,7 @@
LIBEXT = dylib
-LIBFLAGS = -dynamiclib -Wl,-install_name,"$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)" \
- -Wl,-compatibility_version,$(LIB_MAJOR) -Wl,-current_version,$(LIB_VERSION)
+LIBFLAGS = -dynamiclib -Wl,-compatibility_version,$(LIB_MAJOR) -Wl,-current_version,$(LIB_VERSION)
LIBMAJOREXT = $(LIB_MAJOR).$(LIBEXT)
LIBMINOREXT = $(LIB_VERSION).$(LIBEXT)
+
+FIX_INSTALL_NAME = install_name_tool -id "$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)" "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBEXT)"