Use FRAMEWORK_LIBS instead of LIBS for .frameworks
This allows linking the framework against other frameworks rather than other shared libs.
This commit is contained in:
parent
639eb974c9
commit
6b639af512
2 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ ${FRAMEWORK} ${FRAMEWORK_NOINST}: ${EXT_DEPS} ${LIB_OBJS} ${LIB_OBJS_EXTRA}
|
|||
fi
|
||||
${LINK_STATUS}
|
||||
out="$@"; \
|
||||
if ${LD} -o $$out/$${out%.framework} ${LIB_OBJS} ${LIB_OBJS_EXTRA} ${FRAMEWORK_LDFLAGS} ${FRAMEWORK_LDFLAGS_INSTALL_NAME} ${LDFLAGS} ${LIBS} && ${CODESIGN} -fs ${CODESIGN_IDENTITY} --timestamp=none $$out; then \
|
||||
if ${LD} -o $$out/$${out%.framework} ${LIB_OBJS} ${LIB_OBJS_EXTRA} ${FRAMEWORK_LDFLAGS} ${FRAMEWORK_LDFLAGS_INSTALL_NAME} ${LDFLAGS} ${FRAMEWORK_LIBS} && ${CODESIGN} -fs ${CODESIGN_IDENTITY} --timestamp=none $$out; then \
|
||||
${LINK_OK}; \
|
||||
else \
|
||||
rm -fr $$out; \
|
||||
|
|
|
@ -144,6 +144,7 @@ AC_DEFUN([BUILDSYS_PROG_IMPLIB], [
|
|||
AC_DEFUN([BUILDSYS_SHARED_LIB], [
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_MSG_CHECKING(for shared library system)
|
||||
|
||||
case "$host_os" in
|
||||
darwin*)
|
||||
AC_MSG_RESULT(Darwin)
|
||||
|
@ -283,7 +284,6 @@ AC_DEFUN([BUILDSYS_FRAMEWORK], [
|
|||
AC_SUBST(FRAMEWORK_LDFLAGS_INSTALL_NAME)
|
||||
|
||||
$1
|
||||
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue