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

bootstrap.sh

index c60fb0d963cff0fa30f5529e7347124259375bf2..3136a4d75fef40f5ef6bf75ea91724187cefbed4 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
 }