develooper Front page | perl.perl5.porters | Postings from July 2008

[PATCH] Minor hints/linux.sh patch to allow setting -Doptimize

Thread Next
From:
Andrew Dougherty
Date:
July 29, 2008 09:01
Subject:
[PATCH] Minor hints/linux.sh patch to allow setting -Doptimize
Message ID:
Pine.LNX.4.64.0807291159410.23060@fractal.phys.lafayette.edu
Hints files should allow command-line overrides, especially for things
like -Doptimize.

diff -r -u perl-current/hints/linux.sh perl-andy/hints/linux.sh
--- perl-current/hints/linux.sh	2008-05-17 10:31:36.000000000 -0400
+++ perl-andy/hints/linux.sh	2008-07-29 09:54:20.000000000 -0400
@@ -97,7 +97,7 @@
     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

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About