Add -rpath for the target path when building a DLL on OSX

This commit is contained in:
Christophe de Dinechin 2017-11-20 22:36:49 +01:00
parent 0f3b5d325a
commit dae13eb339
1 changed files with 3 additions and 2 deletions

View File

@ -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