shithub: freetype+ttf2subf

Download patch

ref: b1c36cfbd99c67ef239753387a5ec1102c11608b
parent: 5df5dbb722cf008b3f617448d8d28fde4d725556
author: Suzuki, Toshiya (鈴木俊哉) <[email protected]>
date: Sun Jun 22 11:32:56 EDT 2008

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-06-22  suzuki toshiya <[email protected]>
+
+	* 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  <[email protected]>
 
 	Enable access to the various dropout rules of the B&W rasterizer.
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -171,6 +171,32 @@
 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!