build-package.sh: enable use of DT_RUNPATH, set minimal API level to 24
This commit is contained in:
parent
3558d044c4
commit
c508560e40
@ -24,9 +24,8 @@ termux_step_setup_toolchain() {
|
||||
export READELF=$TERMUX_HOST_PLATFORM-readelf
|
||||
export STRIP=$TERMUX_HOST_PLATFORM-strip
|
||||
|
||||
# Android 7 started to support DT_RUNPATH (but not DT_RPATH), so we may want
|
||||
# LDFLAGS+="-Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags"
|
||||
# and no longer remove DT_RUNPATH in termux-elf-cleaner.
|
||||
# Android 7 started to support DT_RUNPATH (but not DT_RPATH).
|
||||
LDFLAGS+=" -Wl,-rpath=$TERMUX_PREFIX/lib -Wl,--enable-new-dtags"
|
||||
|
||||
if [ "$TERMUX_ARCH" = "arm" ]; then
|
||||
# https://developer.android.com/ndk/guides/standalone_toolchain.html#abi_compatibility:
|
||||
|
@ -7,7 +7,7 @@ termux_step_setup_variables() {
|
||||
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
|
||||
: "${TERMUX_ANDROID_HOME:="/data/data/com.termux/files/home"}"
|
||||
: "${TERMUX_DEBUG:=""}"
|
||||
: "${TERMUX_PKG_API_LEVEL:="21"}"
|
||||
: "${TERMUX_PKG_API_LEVEL:="24"}"
|
||||
: "${TERMUX_NO_CLEAN:="false"}"
|
||||
: "${TERMUX_QUIET_BUILD:="false"}"
|
||||
: "${TERMUX_DEBDIR:="${TERMUX_SCRIPTDIR}/debs"}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user