Index: config/init/hints/darwin.pm =================================================================== --- config/init/hints/darwin.pm (revision 40185) +++ config/init/hints/darwin.pm (working copy) @@ -39,8 +39,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 "; + } + $conf->data->set( darwin => 1, osx_version => $ENV{'MACOSX_DEPLOYMENT_TARGET'},