diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2007-04-21 02:52:14 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2007-04-21 02:52:14 +0000 |
commit | 9d7a595a810e75c945a6c5da1868c01fb091746a (patch) | |
tree | 95cd605515570965fddbc3987f1f87c816556bb6 /packages/perl/perl-5.8.8/generate-sh.patch | |
parent | ffb2d5eab2ae13cc66f107e6d4988b4075036144 (diff) |
perl: Add 5.8.8 and use DEFAULT_PREFERENCE to disable it until more
testing is done.
Main differences from the 5.8.7 recipe are:
* Always use gcc to link. Same arch's require this, while others can
happily use ld. Use gcc for everything.
* Fix threading issues by enabling threading in both perl-native and
perl. In fact make the configurations almost identical.
* No per ARCH configuration, just 32/64/le/be configs. This should
stop configurations differing between arch's which made fixing
things 5.8.7 difficult. Also means new ARCH's should work without
any changes.
* Fix up the way miniperl is handled so it shouldn't be the cause of
problems for people anymore.
* Stop perl-modules depending on perl-dbg, perl-pod, perl-dev etc.
* In theory should work for MACHINE="native" now.
Only tested for an sh4/glibc target built on an x86_64 host so far. A
lot more testing and more cleanups are needed before this is ready to
be enabled by default. NOTE: You must build the matching version of
perl-native before attempting to build perl (that applies for any
version).
Diffstat (limited to 'packages/perl/perl-5.8.8/generate-sh.patch')
-rw-r--r-- | packages/perl/perl-5.8.8/generate-sh.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/perl/perl-5.8.8/generate-sh.patch b/packages/perl/perl-5.8.8/generate-sh.patch new file mode 100644 index 0000000000..4c2b0bd752 --- /dev/null +++ b/packages/perl/perl-5.8.8/generate-sh.patch @@ -0,0 +1,16 @@ +Use the ld flags from the supplied configuration file. For sh we need the +flags that specify to build PIC code so that the shared libraries work. + +--- perl-5.8.7/Cross/generate_config_sh~ 2006-09-25 16:34:09.000000000 +1000 ++++ perl-5.8.7/Cross/generate_config_sh 2006-09-25 16:34:09.000000000 +1000 +@@ -19,8 +19,8 @@ + $callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]]; + $callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]]; + $callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; +-$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; +-$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; ++#$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; ++#$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; + $callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; + $callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; + $callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; |