Small test tweaks.
[p5sagit/p5-mst-13.2.git] / hints / dec_osf.sh
index c6c09e5..fd7f479 100644 (file)
@@ -149,10 +149,19 @@ case "`uname -r`" in
 *)            if $test "X$optimize" = "X$undef"; then
                       lddlflags="$lddlflags -msym"
               else
-                      lddlflags="$lddlflags $optimize -msym"
+                 case "`sizer -v`" in
+                 *4.0D*)
+                     # QAR 56761: -O4 + .so may produce broken code,
+                     # fixed in 4.0E or better.
+                     ;;
+                 *)    
+                      lddlflags="$lddlflags $optimize"
+                     ;;
+                 esac
+                 # -msym: If using a sufficiently recent /sbin/loader,
+                 # keep the module symbols with the modules.
+                  lddlflags="$lddlflags -msym"
               fi
-               # -msym: If using a sufficiently recent /sbin/loader,
-               # keep the module symbols with the modules.
                ;;
 esac
 # Yes, the above loses if gcc does not use the system linker.
@@ -198,7 +207,7 @@ pp_sys_cflags='ccflags="$ccflags -DNO_EFF_ONLY_OK"'
 cat > UU/usethreads.cbu <<'EOCBU'
 case "$usethreads" in
 $define|true|[yY]*)
-        # Threads interfaces and flags changed with V4.0.
+        # Threads interfaces changed with V4.0.
         case "`uname -r`" in
         *[123].*)
            libswanted="$libswanted pthreads mach exc c_r"
@@ -209,7 +218,7 @@ $define|true|[yY]*)
            ccflags="-pthread $ccflags"
            ;;
         esac
-       ccflags="-D_REENTRANT $ccflags"
+
         usemymalloc='n'
        ;;
 esac