diff --git a/tools/valgrind/build-valgrind-for-chromium.sh b/tools/valgrind/build-valgrind-for-chromium.sh
index 343722293c42fe2f26a6d011ae5ee796bfc2df5a..f11e43cbb09011a171dbb39c2ac681ebdd11ab98 100755
--- a/tools/valgrind/build-valgrind-for-chromium.sh
+++ b/tools/valgrind/build-valgrind-for-chromium.sh
@@ -81,6 +81,13 @@ then
   fi
 
   sh autogen.sh
+  if test -L install-sh
+  then
+    # replace symlink with actual contents!
+    cp install-sh install-sh.new
+    mv install-sh.new install-sh
+    chmod +x install-sh
+  fi
 
   # MacOSX before Snow Leopoard needs newer gdb to be able to handle -O1 chrome
   # Kludgily download and unpack the sources in a subdirectory.