Add -rpath for the target path when building a DLL on OSX
This commit is contained in:
parent
0f3b5d325a
commit
dae13eb339
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue