avoid literal 'undef' in $lddlflags under `Configure -Uoptimize`
Kurt D. Starsinic [Fri, 19 Feb 1999 15:47:59 +0000 (10:47 -0500)]
Message-ID: <19990219154759.A32350@O2.chapin.edu>
Subject: [PATCH] OSF/1 hints

p4raw-id: //depot/perl@3126

hints/dec_osf.sh

index 686ae2c..b511e31 100644 (file)
@@ -146,7 +146,11 @@ case "`uname -r`" in
 *[123].*)      # old loader
                lddlflags="$lddlflags -O3"
                ;;
-*)             lddlflags="$lddlflags $optimize -msym"
+*)            if $test "X$optimize" = "X$undef"; then
+                      lddlflags="$lddlflags -msym"
+              else
+                      lddlflags="$lddlflags $optimize -msym"
+              fi
                # -msym: If using a sufficiently recent /sbin/loader,
                # keep the module symbols with the modules.
                ;;