blob: c41c8fec297d3d16592fdc5aa0549aba422c8b4c [file] [log] [blame]
Fix build time issues with tools who like to export LD_LIBRARY_PATH
to retarded values.
http://bugs.gentoo.org/99593
--- ltmain.sh
+++ ltmain.sh
@@ -5085,6 +5085,11 @@
$echo >> $output "\
if test \"\$libtool_execute_magic\" != \"$magic\"; then
# Run the actual program with our arguments.
+
+ # Make sure env LD_LIBRARY_PATH does not mess us up
+ if test -n \"\${LD_LIBRARY_PATH+set}\"; then
+ export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
+ fi
"
case $host in
# Backslashes separate directories on plain windows