Skip to content

Commit

Permalink
[fix] add rpath for libopaque.so in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
stef committed Jul 12, 2024
1 parent bc269cc commit 9787590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ AR?=ar
UNAME := $(shell uname -s)
ifeq ($(UNAME),Darwin)
SOEXT=dylib
SOFLAGS=-Wl,-install_name,liboprf.$(SOEXT)
SOFLAGS=-Wl,-install_name,liboprf.$(SOEXT) -Wl,-rpath=$(DESTDIR)$(PREFIX)/lib
else
CFLAGS+=-Wl,-z,defs -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now \
-fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error \
-fcf-protection=full
# -mbranch-protection=standard -fstrict-flex-arrays=3
SOEXT=so
SOFLAGS=-Wl,-soname,libopaque.$(SOEXT).$(SOVER)
SOFLAGS=-Wl,-soname,libopaque.$(SOEXT).$(SOVER) -Wl,-rpath=$(DESTDIR)$(PREFIX)/lib
endif

SODIUM_NEWER_THAN_1_0_18 := $(shell pkgconf --atleast-version=1.0.19 libsodium; echo $$?)
Expand Down

0 comments on commit 9787590

Please sign in to comment.