perl: dont pass linker flags to clang -E
I.e. preprocessor mode. This silences warning messages both when cross-compiling perl and when compiling perl packages on device. Note that the main perl binary ends up with RUNPATH set to $PREFIX/lib/perl5/5.32.1/arm-android/CORE, instead of $PREFIX/lib _and_ $PREFIX/lib/perl5/5.32.1/arm-android/CORE. perl only links against the standard libraries and libperl.so though, and the latter is in $PREFIX/lib/perl5/5.32.1/arm-android/CORE so there should be no need to add $PREFIX/lib to RUNPATH (unless I am missing something). Tested by running perl and installing some perl modules on an arm tablet,
This commit is contained in:
parent
3ed4c8eec4
commit
c7443b67fe
@ -8,6 +8,7 @@ TERMUX_PKG_MAINTAINER="@termux"
|
|||||||
# - psutils
|
# - psutils
|
||||||
TERMUX_PKG_VERSION=(5.32.1
|
TERMUX_PKG_VERSION=(5.32.1
|
||||||
1.3.5)
|
1.3.5)
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SHA256=(03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
|
TERMUX_PKG_SHA256=(03b693901cd8ae807231b1787798cf1f2e0b8a56218d07b7da44f784a7caeb2c
|
||||||
91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25)
|
91c66f6b2b99fccfd4fee14660b677380b0c98f9456359e91449798c2ad2ef25)
|
||||||
TERMUX_PKG_SRCURL=(http://www.cpan.org/src/5.0/perl-${TERMUX_PKG_VERSION}.tar.gz
|
TERMUX_PKG_SRCURL=(http://www.cpan.org/src/5.0/perl-${TERMUX_PKG_VERSION}.tar.gz
|
||||||
@ -60,7 +61,8 @@ termux_step_configure() {
|
|||||||
-Dsysroot=$TERMUX_STANDALONE_TOOLCHAIN/sysroot \
|
-Dsysroot=$TERMUX_STANDALONE_TOOLCHAIN/sysroot \
|
||||||
-Dprefix=$TERMUX_PREFIX \
|
-Dprefix=$TERMUX_PREFIX \
|
||||||
-Dsh=$TERMUX_PREFIX/bin/sh \
|
-Dsh=$TERMUX_PREFIX/bin/sh \
|
||||||
-Dcc="$ORIG_CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" \
|
-Dcc="$ORIG_CC" \
|
||||||
|
-Dld="$ORIG_CC -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags" \
|
||||||
-Duseshrplib
|
-Duseshrplib
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user