[svn:parrot] r40291 - trunk/config/init/hints

coke at svn.parrot.org coke at svn.parrot.org
Mon Jul 27 13:40:26 UTC 2009


Author: coke
Date: Mon Jul 27 13:40:24 2009
New Revision: 40291
URL: https://trac.parrot.org/parrot/changeset/40291

Log:
Avoid invalid compiler option on OS X 10.6 (gcc 4.2)

TT #877, Courtesy johnewart++

Modified:
   trunk/config/init/hints/darwin.pm

Modified: trunk/config/init/hints/darwin.pm
==============================================================================
--- trunk/config/init/hints/darwin.pm	Sun Jul 26 22:05:39 2009	(r40290)
+++ trunk/config/init/hints/darwin.pm	Mon Jul 27 13:40:24 2009	(r40291)
@@ -46,7 +46,14 @@
 
     my $lib_dir = $conf->data->get('build_dir') . "/blib/lib";
     $flagsref->{ldflags} .= " -L$lib_dir";
-    $flagsref->{ccflags} .= " -pipe -fno-common -Wno-long-double ";
+
+    if ($ENV{'MACOSX_DEPLOYMENT_TARGET'} eq '10.6') {
+        $flagsref->{ccflags} .= ' -pipe -fno-common ';
+    }
+    else {
+        $flagsref->{ccflags} .= ' -pipe -fno-common -Wno-long-double ';
+    }
+
     $flagsref->{linkflags} .= " -undefined dynamic_lookup";
 
     _probe_for_libraries($conf, $flagsref, 'fink');


More information about the parrot-commits mailing list