]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2972: LTDL 2.2.6b compile errors
authorAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 10:49:55 +0000 (04:49 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 10:49:55 +0000 (04:49 -0600)
Bundle a slightly hacked version of libltdl/ltdl.h which does not use <>
for inclusion of its dependency files. This makes it portable to OS with
older libtool versions.

bootstrap.sh

index b6dd2f6f83e857d1fd5b0b1059bf4c74621c018a..c60fb0d963cff0fa30f5529e7347124259375bf2 100755 (executable)
@@ -101,6 +101,10 @@ bootstrap_libtoolize() {
         chmod u+w $makefile
         mv $makefile.new $makefile
         chmod u-w $makefile
+
+        # Libtool 2.2.6b we bundle is slightly broken with non-portable dependencies
+        sed 's/<libltdl/\"libltdl/g' $src/ltdl.h | sed 's/.h>/.h\"/g' > $src/ltdl.h.new;
+        mv $src/ltdl.h.new $src/ltdl.h
     fi
 }