This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tidied version of Jeffrey Friedl's <jfriedl@yahoo.com> restricted hashes
[perl5.git] / configure.gnu
index fa46532..f98eb76 100755 (executable)
@@ -86,7 +86,7 @@ EOM
                exit 1
                ;;
        *)
-               opts="$opts $1"
+               opts="$opts '$1'"
                shift
                ;;
        esac
@@ -111,6 +111,14 @@ case "$ccflags" in
 '') ;;
 *) opts="$opts -Dccflags='$ccflags'";;
 esac
+case "$LDFLAGS" in
+'') ;;
+*) ldflags="$ldflags $LDFLAGS";;
+esac
+case "$ldflags" in
+'') ;;
+*) opts="$opts -Dldflags='$ldflags'";;
+esac
 
 # Don't use -s if they want verbose mode
 case "$verbose" in
@@ -118,7 +126,7 @@ case "$verbose" in
 *) copt="$copt -d";;
 esac
 
-set X sh Configure $copt $create $opts
+eval "set X sh Configure $copt $create $opts"
 shift
 echo "$@"
 exec "$@"