This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid adding null components to LD_LIBRARY_PATH, OpenBSD has trouble
[perl5.git] / configure.gnu
index fa46532..2ef8331 100755 (executable)
@@ -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