This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Minor hints/linux.sh patch to allow setting -Doptimize
[perl5.git] / hints / linux.sh
index 220e6a0..b254310 100644 (file)
@@ -97,7 +97,7 @@ case "`${cc:-cc} -V 2>&1`" in
     esac
     ;;
 *"Sun C"*)
-    optimize='-xO2'
+    test "$optimize" || optimize='-xO2'
     cccdlflags='-KPIC'
     lddlflags='-G -Bdynamic'
     # Sun C doesn't support gcc attributes, but, in many cases, doesn't