perl: Do not unset AR for global scope
This commit is contained in:
parent
77bce9623a
commit
2b8b24fe09
@ -39,6 +39,13 @@ termux_step_post_get_source() {
|
||||
termux_step_configure() {
|
||||
export PATH=$PATH:$TERMUX_STANDALONE_TOOLCHAIN/bin
|
||||
|
||||
# Since we specify $TERMUX_PREFIX/bin/sh below for the shell
|
||||
# it will be run during the build, so temporarily (removed in
|
||||
# termux_step_post_make_install below) setup symlink:
|
||||
rm -f $TERMUX_PREFIX/bin/sh
|
||||
ln -s /bin/sh $TERMUX_PREFIX/bin/sh
|
||||
|
||||
(
|
||||
ORIG_AR=$AR; unset AR
|
||||
ORIG_AS=$AS; unset AS
|
||||
ORIG_CC=$CC; unset CC
|
||||
@ -51,12 +58,6 @@ termux_step_configure() {
|
||||
ORIG_RANLIB=$RANLIB; unset RANLIB
|
||||
ORIG_LD=$LD; unset LD
|
||||
|
||||
# Since we specify $TERMUX_PREFIX/bin/sh below for the shell
|
||||
# it will be run during the build, so temporarily (removed in
|
||||
# termux_step_post_make_install below) setup symlink:
|
||||
rm -f $TERMUX_PREFIX/bin/sh
|
||||
ln -s /bin/sh $TERMUX_PREFIX/bin/sh
|
||||
|
||||
cd $TERMUX_PKG_BUILDDIR
|
||||
$TERMUX_PKG_SRCDIR/configure \
|
||||
--target=$TERMUX_HOST_PLATFORM \
|
||||
@ -69,6 +70,7 @@ termux_step_configure() {
|
||||
-Dar="$ORIG_AR" \
|
||||
-Duseshrplib \
|
||||
-Dusethreads
|
||||
)
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user