# New Ticket Created by  Packy Anderson 
# Please include the string:  [perl #55910]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=55910 >


When I first downloaded the parrot code from svn yesterday, it failed  
"perl Configure.pl" with the error "Compilation failed with 'cc'".   
Between poking around the mailing list archives and a script Will  
gave me I was able to get it working, but it occurred to me that the  
hints file really should do what's necessary to customize the  
configuration for OS X on PowerPC so future noobs like me don't run  
into this problem.

I've attached my patch to config/init/hints/darwin.pm; with this  
patch, I'm able to run "perl Configure.pl" with no special  
environment variables set and Configure.pl runs to completion.

-packy

Index: config/init/hints/darwin.pm
===================================================================
--- config/init/hints/darwin.pm (revision 28436)
+++ config/init/hints/darwin.pm (working copy)
@@ -21,6 +21,14 @@
         }
     }
 
+    unless (exists $ENV{'MACOSX_DEPLOYMENT_TARGET'}) {
+       my $OSX_vers = `sw_vers -productVersion`;
+       chomp $OSX_vers;
+       # remove minor version
+       $OSX_vers =join '.', (split /[.]/, $OSX_vers)[0,1]; 
+       $ENV{'MACOSX_DEPLOYMENT_TARGET'} = $OSX_vers;
+    }
+
     my $lib_dir = $conf->data->get('build_dir') . "/blib/lib";
     $ldflags .= " -L$lib_dir";
     $ccflags .= " -pipe -fno-common -Wno-long-double ";

--
Packy Anderson                                               
[EMAIL PROTECTED]

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."           --Benjamin  
Franklin


Reply via email to