CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed perl compilation with msoft-float option.
[crossrootfs.git] / perl / Pkgfile
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):|' \