1*eb8dc403SDave CobbleyFix glib cross compile
2*eb8dc403SDave Cobbley
3*eb8dc403SDave CobbleyUses proper PKG_CONFIG_PATH when cross-compiling
4*eb8dc403SDave Cobbley
5*eb8dc403SDave CobbleyUpstream-Status: Pending
6*eb8dc403SDave Cobbley
7*eb8dc403SDave CobbleySigned-of-by: Aws Ismail <aws.ismail@windriver.com>
8*eb8dc403SDave Cobbley
9*eb8dc403SDave Cobbleydiff --git a/configure.ac b/configure.ac
10*eb8dc403SDave Cobbleyindex b5f5aad..f5a5b74 100644
11*eb8dc403SDave Cobbley--- a/configure.ac
12*eb8dc403SDave Cobbley+++ b/configure.ac
13*eb8dc403SDave Cobbley@@ -110,13 +110,13 @@ else
14*eb8dc403SDave Cobbley *** GLIB is always available from ftp://ftp.gtk.org/.])
15*eb8dc403SDave Cobbley fi
16*eb8dc403SDave Cobbley
17*eb8dc403SDave Cobbley-exact_version=`pkg-config --modversion $GLIB`;
18*eb8dc403SDave Cobbley-GLIB_CFLAGS=`pkg-config --cflags $GLIB $GTHREAD`
19*eb8dc403SDave Cobbley-GLIB_LIBS=`pkg-config --libs $GLIB $GTHREAD`
20*eb8dc403SDave Cobbley-GLIB_ONLY_CFLAGS=`pkg-config --cflags $GLIB`
21*eb8dc403SDave Cobbley-GLIB_ONLY_LIBS=`pkg-config --libs $GLIB`
22*eb8dc403SDave Cobbley-GMODULE_ONLY_CFLAGS=`pkg-config --cflags $GMODULE`
23*eb8dc403SDave Cobbley-GMODULE_ONLY_LIBS=`pkg-config --libs $GMODULE`
24*eb8dc403SDave Cobbley+exact_version=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --modversion $GLIB`;
25*eb8dc403SDave Cobbley+GLIB_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GLIB $GTHREAD`
26*eb8dc403SDave Cobbley+GLIB_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GLIB $GTHREAD`
27*eb8dc403SDave Cobbley+GLIB_ONLY_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GLIB`
28*eb8dc403SDave Cobbley+GLIB_ONLY_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GLIB`
29*eb8dc403SDave Cobbley+GMODULE_ONLY_CFLAGS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags $GMODULE`
30*eb8dc403SDave Cobbley+GMODULE_ONLY_LIBS=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs $GMODULE`
31*eb8dc403SDave Cobbley
32*eb8dc403SDave Cobbley # On some versions of Solaris the pkg-config file for gthread-2.0 contains a
33*eb8dc403SDave Cobbley # compiler option, '-mt', that is incompatible with gcc
34