]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Better bug 2972 fix.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 11:50:36 +0000 (05:50 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Mon, 5 Jul 2010 11:50:36 +0000 (05:50 -0600)
sed the includes explicitly. Previous run worked unless code was actually
bootstrapped to an older libtool version.

bootstrap.sh

index 2ccde1a50368f768b210e4adfc1752c5eb33f604..d0f17211069161aa602b29c80836c8ad775c7e19 100755 (executable)
@@ -103,8 +103,12 @@ bootstrap_libtoolize() {
         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;
+        sed 's/<libltdl\/lt_system.h>/\"libltdl\/lt_system.h\"/g' $src/ltdl.h |
+            sed 's/<libltdl\/lt_error.h>/\"libltdl\/lt_error.h\"/g' |
+            sed 's/<libltdl\/lt_dlloader.h>/\"libltdl\/lt_dlloader.h\"/g' > $src/ltdl.h.new;
+        chmod u+w $src/ltdl.h
         mv $src/ltdl.h.new $src/ltdl.h
+        chmod u-w $src/ltdl.h
     fi
 }