From 161259f19088a15239bb3f7ecad8557f02c2765c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 22 Sep 2018 03:11:38 +0200 Subject: [PATCH] perl: Build with -Dosname=android --- packages/perl/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/perl/build.sh b/packages/perl/build.sh index 5d077dc91..5f4ac90c4 100644 --- a/packages/perl/build.sh +++ b/packages/perl/build.sh @@ -45,6 +45,7 @@ termux_step_configure () { cd $TERMUX_PKG_BUILDDIR $TERMUX_PKG_SRCDIR/configure \ --target=$TERMUX_HOST_PLATFORM \ + -Dosname=android \ -Dsysroot=$TERMUX_STANDALONE_TOOLCHAIN/sysroot \ -Dprefix=$TERMUX_PREFIX \ -Dsh=$TERMUX_PREFIX/bin/sh \ @@ -62,11 +63,11 @@ termux_step_post_make_install () { rm $TERMUX_PREFIX/bin/sh cd $TERMUX_PREFIX/lib - ln -f -s perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-linux/CORE/libperl.so libperl.so + ln -f -s perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/CORE/libperl.so libperl.so cd $TERMUX_PREFIX/include - ln -f -s ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-linux/CORE perl - cd ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-linux/ + ln -f -s ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/CORE perl + cd ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/ chmod +w Config_heavy.pl sed 's',"--sysroot=$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I/data/data/com.termux/files/usr/include",'g' Config_heavy.pl > Config_heavy.pl.new sed 's',"$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I/data/data/com.termux/files",'g' Config_heavy.pl.new > Config_heavy.pl