Fix icu linking by requesting the library searchpath from icu-config
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 29 Apr 2013 17:48:49 +0000 (13:48 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 29 Apr 2013 17:48:49 +0000 (13:48 -0400)
This is not ideal as we don't like -L/usr/lib in our linker line.
But this is only relevant to environments that don't have pkgconfig
files for ICU...

https://github.com/behdad/harfbuzz/pull/2

configure.ac

index b44dd75..0ab61ba 100644 (file)
@@ -177,7 +177,7 @@ if test "$have_icu" != "true"; then
                # necessarily want, like debugging and optimization flags
                # See man (1) icu-config for more info.
                ICU_CFLAGS=`$ICU_CONFIG --cppflags`
-               ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly`
+               ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
                AC_SUBST(ICU_CFLAGS)
                AC_SUBST(ICU_LIBS)
                AC_MSG_RESULT([yes])
@@ -205,7 +205,7 @@ if test "$have_icu_le" != "true"; then
                # necessarily want, like debugging and optimization flags
                # See man (1) icu-config for more info.
                ICU_LE_CFLAGS=`$ICU_CONFIG --cppflags`
-               ICU_LE_LIBS=`$ICU_CONFIG --ldflags-libsonly --ldflags-layout`
+               ICU_LE_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly --ldflags-layout`
                AC_SUBST(ICU_LE_CFLAGS)
                AC_SUBST(ICU_LE_LIBS)
                AC_MSG_RESULT([yes])