* builds/unix/configure.raw: Copy -isysroot option from CFLAGS to LDFLAGS, if required

This commit is contained in:
Suzuki, Toshiya (鈴木俊哉) 2008-06-22 15:32:56 +00:00
parent 5df5dbb722
commit b1c36cfbd9
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2008-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* 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 <wl@gnu.org>
Enable access to the various dropout rules of the B&W rasterizer.

View File

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