CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed perl compilation with msoft-float option.
authorVictor Martinez <pitillo@ono.com>
Sun, 23 May 2010 10:59:49 +0000 (10:59 +0000)
committerVictor Martinez <pitillo@ono.com>
Sun, 23 May 2010 10:59:49 +0000 (10:59 +0000)
perl/.md5sum
perl/Pkgfile
perl/perl-5.10.0-cross_compile-1.patch

index 51d15c3b1a1ab24eca0a7f03d6ee84a118f36b6d..dee2d1962c52ac9f076358783f0ce34e444357cf 100644 (file)
@@ -1,2 +1,2 @@
-5efface8b393841a07c66a08dc7be847  perl-5.10.0-cross_compile-1.patch
+6a924c325bf48b0ecbd38459f2c7cbac  perl-5.10.0-cross_compile-1.patch
 d2c39b002ebfd2c3c5dba589365c5a71  perl-5.10.0.tar.gz
index f946ed03786fd79a846446370d4c5d5589291e46..dd8e4be5b7b359b1c9ba8887ea6d653ba8e57078 100644 (file)
@@ -6,7 +6,7 @@
 
 name=perl
 version=5.10.0
-release=1
+release=2
 source=(http://www.cpan.org/src/5.0/$name-$version.tar.gz \
         $name-$version-cross_compile-1.patch)
 
@@ -14,6 +14,9 @@ build() {
   cd $name-$version
   patch -p1 -i $SRC/$name-$version-cross_compile-1.patch
 
+  # Use of safe cflags to build perl-cross on the host, and don't use msoft-float
+  export CFLAGS="-O2 -pipe"
+
   # avoid to use target generate_uudmap binary
   sed -i Makefile.SH \
       -e 's|generate_uudmap\\$(EXE_EXT): .*|generate_uudmap\\$(EXE_EXT):|' \
index 6972bb30eff816b875bd06212110d762641d0749..d764a460690b6f954b19049e76f2a7e599977bb8 100644 (file)
@@ -3526,7 +3526,7 @@ diff -Naur perl-5.10.0.orig/Cross/Makefile perl-5.10.0/Cross/Makefile
 +          -e "s@\(^full_ar=\).*@\1'$(shell which $(AR))'@g" \
 +          -e "s@\(^full_sed=\).*@\1'$(shell which sed)'@g" \
 +          -e "s@\(^ccdlflags=\).*@\1'-Wl,-E -Wl,-rpath,/usr/lib/perl5/$(VERSION)/$(ARCHNAME)/CORE'@g" \
-+          -e "/^ccflags=/s@-I/usr/local/include@@g" \
++          -e "/^ccflags=/s@-I/usr/local/include@-msoft-float@g" \
 +          -e "/^cppflags=/s@-I/usr/local/include@@g" \
 +          -e "/^ldflags=/s@-L/usr/local/lib@@g" \
 +          -e "/^lddlflags=/s@-L/usr/local/lib@@g" \