-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
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)
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):|' \
+ -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" \