From dae13eb3397045fb2bd4e564500578ccbf2a8dd2 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Mon, 20 Nov 2017 22:36:49 +0100 Subject: [PATCH] Add -rpath for the target path when building a DLL on OSX --- config.macosx-clang.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.macosx-clang.mk b/config.macosx-clang.mk index 71acd2e..4d89bee 100644 --- a/config.macosx-clang.mk +++ b/config.macosx-clang.mk @@ -29,7 +29,8 @@ include $(BUILD)config.gnu.mk CFLAGS_ssev4= -msse4 DLL_EXT= .dylib MAKE_LIB= $(LIBTOOL) -static $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS) -o $@ -MAKE_DLL= $(LD) -shared $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS) -o $@ +MAKE_DLL= $(LD) -shared $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS) -o $@ -rpath $(PREFIX_LIB) # On MacOSX, we will use basic frameworks e.g. for string and filesystem functions -LDFLAGS_macosx-clang= -framework CoreFoundation -framework CoreServices +LDFLAGS_macosx-clang= -framework CoreFoundation \ + -framework CoreServices