From b1c36cfbd99c67ef239753387a5ec1102c11608b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Suzuki=2C=20Toshiya=20=28=E9=88=B4=E6=9C=A8=E4=BF=8A?= =?UTF-8?q?=E5=93=89=29?= Date: Sun, 22 Jun 2008 15:32:56 +0000 Subject: [PATCH] * builds/unix/configure.raw: Copy -isysroot option from CFLAGS to LDFLAGS, if required --- ChangeLog | 11 +++++++++++ builds/unix/configure.raw | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0ce63c0f7..ffa1bc5f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-06-22 suzuki toshiya + + * builds/unix/configure.raw: If CFLAGS has "-isysroot XXX" + option but LDFLAGS does not, import it to LDFLAGS. The option + is used to specify non-default SDK on Mac OS X (e.g. universal + binary SDK for Mac OS X 10.4 on PowerPC platform). Although + Apple TechNote 2137 recommends to add the option only to CFLAGS, + LDFLAGS should include it because libfreetype.la is built with + -no-undefined. This fixes a bug reported by Ryan Schmidt in + MacPorts, http://trac.macports.org/ticket/15331. + 2008-06-21 Werner Lemberg Enable access to the various dropout rules of the B&W rasterizer. diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw index 26a63c7a2..2015aacfc 100644 --- a/builds/unix/configure.raw +++ b/builds/unix/configure.raw @@ -171,6 +171,32 @@ if test x$with_zlib != xno && test -n "$LIBZ"; then fi +# check Apple "-isysroot" option and duplicate it to LDFLAGS if required +# Apple TechNote 2137 recommends to include it in CFLAGS but not in LDFLAGS. + +AC_MSG_CHECKING([CFLAGS includes -isysroot option]) +case "$CFLAGS" in + *sysroot* ) + AC_MSG_RESULT([yes]) + AC_MSG_CHECKING([LDFLAGS includes -isysroot option]) + case "$LDFLAGS" in + *sysroot* ) + AC_MSG_RESULT([yes]) + ;; + *) + AC_MSG_RESULT([no]) + isysroot_dir=`echo ${CFLAGS} | tr '\t' ' ' | sed 's/^.*-isysroot *//;s/ .*//'` + AC_MSG_WARN(-isysroot ${isysroot_dir} is added to LDFLAGS) + LDFLAGS="-isysroot ${isysroot_dir} ${LDFLAGS}" + ;; + esac + ;; + *) + AC_MSG_RESULT([no]) + ;; +esac + + # Whether to use Mac OS resource-based fonts. # don't quote AS_HELP_STRING!