Commit 5d3ac4ae120f3704f04aeddb08f5d2f76fafd5ac

Suzuki, Toshiya (鈴木俊哉) 2008-02-21T10:15:41

* builds/unix/confiure.raw: Split the compiler option to link Carbon frameworks for each framework

diff --git a/ChangeLog b/ChangeLog
index 669feb9..0500164 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-02-21  suzuki toshiya  <mpsuzuki@hiroshima-u.ac.jp>
+
+	* builds/unix/configure.raw: Split compiler option to link
+	Carbon frameworks to one option for CoreServices framework
+	and another option for ApplicationServices framework.
+	The splitted options can be managed by GNU libtool to avoid
+	unrequired duplication when freetype is linked with other
+	applications. Suggested by Daniel Macks, Savannah bug #22366.
+
 2008-02-18  Victor Stinner  <victor.stinner@haypocalc.com>
 
 	* src/truetype/ttinterp.c (Ins_IUP): Check number of points.  Fix
diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw
index 06be49a..8aba5f4 100644
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -180,7 +180,7 @@ AC_ARG_WITH([old-mac-fonts],
 if test x$with_old_mac_fonts = xyes; then
   orig_LDFLAGS="${LDFLAGS}"
   AC_MSG_CHECKING([CoreServices & ApplicationServices of Mac OS X])
-  FT2_EXTRA_LIBS="-Wl,-framework,CoreServices,-framework,ApplicationServices"
+  FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
   LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
   AC_TRY_LINK([