summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2005-07-14 13:04:59 +0000
committerArch Librarian <arch@canonical.com>2005-07-14 13:04:59 +0000
commitfa090373fc83cc925f6391bdeb0b059e4e2b6e7a (patch)
tree44dfc7f0754a13294ae3acdbcedc914a6d5ebb1a /autogen.sh
parent253c67066ff10d40fe6bc5163c227bf69fae5056 (diff)
downloadpkg-config-fa090373fc83cc925f6391bdeb0b059e4e2b6e7a.tar.gz
2002-02-07 Havoc Pennington <hp@redhat.com>
Author: hp Date: 2002-02-07 19:54:49 GMT 2002-02-07 Havoc Pennington <hp@redhat.com> * autogen.sh: patch gslist.c so that it has a stable sort function, so we don't utterly mangle the order of the libraries on the link line.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 77f794a..fd6286a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -59,6 +59,9 @@ perl -p -i.bak -e "s/[a-zA-Z0-9]+_DATA/noinst_DATA/g" `find glib-1.2.8 -name Mak
perl -p -i.bak -e "s/info_TEXINFOS/noinst_TEXINFOS/g" `find glib-1.2.8 -name Makefile.am`
perl -p -i.bak -e "s/man_MANS/noinst_MANS/g" `find glib-1.2.8 -name Makefile.am`
+## patch gslist.c to have stable sort
+perl -p -w -i.bak -e 's/if \(compare_func\(l1->data,l2->data\) < 0\)/if \(compare_func\(l1->data,l2->data\) <= 0\)/g' glib-1.2.8/gslist.c
+
(cd glib-1.2.8 && libtoolize --copy --force && $ACLOCAL $ACLOCAL_FLAGS && $AUTOMAKE && autoconf)
if test -z "$*"; then