diff options
author | Carlo Cabrera <30379873+carlocab@users.noreply.github.com> | 2022-02-19 22:46:57 +0800 |
---|---|---|
committer | Carlo Cabrera <30379873+carlocab@users.noreply.github.com> | 2022-02-19 22:46:57 +0800 |
commit | bda62bccc3f99a41c830a00114d255473e8da5a8 (patch) | |
tree | d23812f325d72146aa2ab755b8cdc062da80de11 | |
parent | Set install name in `LIBFLAGS` (diff) | |
download | libkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.gz libkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.bz2 libkeccak-bda62bccc3f99a41c830a00114d255473e8da5a8.tar.xz |
Set install name for installed library
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | linux.mk | 2 | ||||
-rw-r--r-- | macos.mk | 5 |
3 files changed, 6 insertions, 2 deletions
@@ -177,6 +177,7 @@ run-benchmark: benchmark benchfile install: libkeccak.$(LIBEXT) libkeccak.a mkdir -p -- "$(DESTDIR)$(PREFIX)/lib" cp -- libkeccak.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBMINOREXT)" + $(FIX_INSTALL_NAME) ln -sf -- libkeccak.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBMAJOREXT)" ln -sf -- libkeccak.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libkeccak.$(LIBEXT)" cp -- libkeccak.a "$(DESTDIR)$(PREFIX)/lib/libkeccak.a" @@ -3,3 +3,5 @@ LIBFLAGS = -shared -Wl,-soname,libkeccak.$(LIBEXT).$(LIB_MAJOR) LIBMAJOREXT = $(LIBEXT).$(LIB_MAJOR) LIBMINOREXT = $(LIBEXT).$(LIB_VERSION) + +FIX_INSTALL_NAME = : @@ -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)" |