On Jun 16, 2008, at 4:38 PM, Parrot via RT wrote:
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.
Ok, I've fixed the problem with my last submission: I've added a
CONDITIONED_LINE to config/gen/makefiles/root.in so it's now
exporting MACOSX_DEPLOYMENT_TARGET in the Makefile as well as in %
ENV, so it's present when you run make, not just while you're doing
the configuration.
Of course, I'm still doing "perl Configure.pl --without-opengl", but
I don't know if that's a problem with hints file or with the GLUT
implementation...
-packy
Index: config/init/hints/darwin.pm
===================================================================
--- config/init/hints/darwin.pm (revision 28436)
+++ config/init/hints/darwin.pm (working copy)
@@ -21,12 +21,21 @@
}
}
+ 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 ";
$conf->data->set(
darwin => 1,
+ osx_version => $ENV{'MACOSX_DEPLOYMENT_TARGET'},
ccflags => $ccflags,
ldflags => $ldflags,
ccwarn => "-Wno-shadow",
Index: config/gen/makefiles/root.in
===================================================================
--- config/gen/makefiles/root.in (revision 28436)
+++ config/gen/makefiles/root.in (working copy)
@@ -105,6 +105,7 @@
RECONFIGURE = $(PERL) tools/dev/reconfigure.pl
INNO_SETUP = iscc
JIT_BUILD_TOOL = $(BUILD_TOOLS_DIR)/jit2c.pl
+#CONDITIONED_LINE(darwin):export MACOSX_DEPLOYMENT_TARGET := @osx_version@
###############################################################################
#
--
Packy Anderson
[EMAIL PROTECTED]
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." --Benjamin
Franklin