Remove deprecated -undefined dynamic_lookup
Instead, use ${PLUGIN_LDFLAGS_BUNDLE_LOADER} when building a .bundle, which can then be set to -bundle_loader path_to_executable.
This commit is contained in:
parent
f4f8be325a
commit
9462fbe785
2 changed files with 2 additions and 1 deletions
|
@ -296,6 +296,7 @@ ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} ${PLUGIN_OBJS}
|
||||||
if @LINK_PLUGIN@; then \
|
if @LINK_PLUGIN@; then \
|
||||||
${LINK_OK}; \
|
${LINK_OK}; \
|
||||||
else \
|
else \
|
||||||
|
rm -fr $$out; \
|
||||||
${LINK_FAILED}; \
|
${LINK_FAILED}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
|
||||||
LIB_SUFFIX='.dylib'
|
LIB_SUFFIX='.dylib'
|
||||||
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
|
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
|
||||||
PLUGIN_CFLAGS='-fPIC -DPIC'
|
PLUGIN_CFLAGS='-fPIC -DPIC'
|
||||||
PLUGIN_LDFLAGS='-bundle -undefined dynamic_lookup'
|
PLUGIN_LDFLAGS='-bundle ${PLUGIN_LDFLAGS_BUNDLE_LOADER}'
|
||||||
PLUGIN_SUFFIX='.bundle'
|
PLUGIN_SUFFIX='.bundle'
|
||||||
AS_IF([test x"$host_is_ios" = x"yes"], [
|
AS_IF([test x"$host_is_ios" = x"yes"], [
|
||||||
LINK_PLUGIN='rm -fr $$out && ${MKDIR_P} $$out && ${LD} -o $$out/$${out%${PLUGIN_SUFFIX}} ${PLUGIN_OBJS} ${PLUGIN_OBJS_EXTRA} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS} && ${CODESIGN} -fs ${CODESIGN_IDENTITY} --timestamp=none $$out'
|
LINK_PLUGIN='rm -fr $$out && ${MKDIR_P} $$out && ${LD} -o $$out/$${out%${PLUGIN_SUFFIX}} ${PLUGIN_OBJS} ${PLUGIN_OBJS_EXTRA} ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS} && ${CODESIGN} -fs ${CODESIGN_IDENTITY} --timestamp=none $$out'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue