Minor hints/linux.sh patch to allow setting -Doptimize
authorAndy Dougherty <doughera@lafayette.edu>
Tue, 29 Jul 2008 12:00:52 +0000 (08:00 -0400)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 29 Jul 2008 16:15:17 +0000 (16:15 +0000)
Message-ID: <Pine.LNX.4.64.0807291159410.23060@fractal.phys.lafayette.edu>

p4raw-id: //depot/perl@34162

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