ref: ab76d970e70634e1fcef774ab4ea59d9365b03fb
parent: d515992587ca2db825158535ba02252a9f0bdb29
author: Werner Lemberg <[email protected]>
date: Mon Mar 24 15:45:03 EDT 2014
Fix Savannah bug #41946. Based on a patch from Marek Kašík <[email protected]>. * builds/unix/configure.raw (LIBS_CONFIG): Remove. * builds/unix/freetype-config.in (libs): Hard-code value. * builds/unix/unix-def.in: Updated.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-03-24 Werner Lemberg <[email protected]>
+
+ Fix Savannah bug #41946.
+
+ Based on a patch from Marek Kašík <[email protected]>.
+
+ * builds/unix/configure.raw (LIBS_CONFIG): Remove.
+ * builds/unix/freetype-config.in (libs): Hard-code value.
+ * builds/unix/unix-def.in: Updated.
+
2014-03-22 Werner Lemberg <[email protected]>
Another revert for the change from 2014-03-18.
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -937,21 +937,6 @@
-e 's/ *$//' \
-e 's/ */ /g'`
-LIBS_CONFIG="-lfreetype \
- $ZLIB_LIBS \
- $BZIP2_LIBS \
- $LIBPNG_LIBS \
- $HARFBUZZ_LIBS \
- $ft2_extra_libs"
-# remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
-# on if necessary; also beautify
-LIBS_CONFIG=`echo "$LIBS_CONFIG" \
- | sed -e 's|-L */usr/lib64/* | |g' \
- -e 's|-L */usr/lib/* | |g' \
- -e 's/^ *//' \
- -e 's/ *$//' \
- -e 's/ */ /g'`
-
LIBSSTATIC_CONFIG="-lfreetype \
$zlib_libstaticconf \
$bzip2_libstaticconf \
@@ -971,7 +956,6 @@
AC_SUBST([ftmac_c])
AC_SUBST([REQUIRES_PRIVATE])
AC_SUBST([LIBS_PRIVATE])
-AC_SUBST([LIBS_CONFIG])
AC_SUBST([LIBSSTATIC_CONFIG])
AC_SUBST([hardcode_libdir_flag_spec])
--- a/builds/unix/freetype-config.in
+++ b/builds/unix/freetype-config.in
@@ -142,7 +142,7 @@
fi
if test "$echo_libs" = "yes" ; then
- libs="%LIBS_CONFIG%"
+ libs="-lfreetype"
staticlibs="%LIBSSTATIC_CONFIG%"
if test "$show_static" = "yes" ; then
libs="$staticlibs"
--- a/builds/unix/unix-def.in
+++ b/builds/unix/unix-def.in
@@ -64,7 +64,6 @@
#
REQUIRES_PRIVATE := @REQUIRES_PRIVATE@
LIBS_PRIVATE := @LIBS_PRIVATE@
-LIBS_CONFIG := @LIBS_CONFIG@
LIBSSTATIC_CONFIG := @LIBSSTATIC_CONFIG@
build_libtool_libs := @build_libtool_libs@
ft_version := @ft_version@
@@ -102,8 +101,7 @@
$(OBJ_BUILD)/freetype-config: $(TOP_DIR)/builds/unix/freetype-config.in
rm -f $@ [email protected]
- sed -e 's|%LIBS_CONFIG%|$(LIBS_CONFIG)|' \
- -e 's|%LIBSSTATIC_CONFIG%|$(LIBSSTATIC_CONFIG)|' \
+ sed -e 's|%LIBSSTATIC_CONFIG%|$(LIBSSTATIC_CONFIG)|' \
-e 's|%build_libtool_libs%|$(build_libtool_libs)|' \
-e 's|%exec_prefix%|$(exec_prefix)|' \
-e 's|%ft_version%|$(ft_version)|' \