summaryrefslogtreecommitdiff
path: root/gtk-config.in
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1998-07-16 21:24:52 +0000
committerManish Singh <yosh@src.gnome.org>1998-07-16 21:24:52 +0000
commit5886cc2cdfdf9b4b9640a594967b9d2616e25bc2 (patch)
treef63b7a933b1dccb380cf711b6a5770ab32d95724 /gtk-config.in
parent81517a6d4c09663ba97335affe5b1ec047a567d3 (diff)
downloadgdk-pixbuf-5886cc2cdfdf9b4b9640a594967b9d2616e25bc2.tar.gz
minor changes to gtk-config: --cflags doesn't prepend -I@libdir@/glib/include
anymore, since glib-config handles it; --libs strips out redundant -L<path>'s properly (there was code in there to do it before, but it didn't work) -Yosh
Diffstat (limited to 'gtk-config.in')
-rw-r--r--gtk-config.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk-config.in b/gtk-config.in
index 26246d70a..7cbc255ff 100644
--- a/gtk-config.in
+++ b/gtk-config.in
@@ -50,16 +50,21 @@ while test $# -gt 0; do
fi
done
fi
- echo -I@libdir@/glib/include $includes @x_cflags@ $glib_cflags
+ echo $includes @x_cflags@ $glib_cflags
;;
--libs)
+ my_glib_libs=
libdirs=-L@libdir@
for i in $glib_libs ; do
- if test $i = -I@libdir@ ; then
- libdirs=""
+ if test $i != -L@libdir@ ; then
+ if test -z "$my_glib_lib" ; then
+ my_glib_libs="$i"
+ else
+ my_glib_libs="$my_glib_libs $i"
+ fi
fi
done
- echo $libdirs @x_ldflags@ -lgtk-@LT_RELEASE@ -lgdk-@LT_RELEASE@ $glib_libs @x_libs@ -lm
+ echo $libdirs @x_ldflags@ -lgtk-@LT_RELEASE@ -lgdk-@LT_RELEASE@ $my_glib_libs @x_libs@ -lm
;;
*)
echo "${usage}" 1>&2