toolchain: Link libandroid-support with --no-as-needed
This commit is contained in:
parent
5d75686611
commit
a50823da6b
@ -87,7 +87,7 @@ termux_step_setup_toolchain() {
|
|||||||
|
|
||||||
# If libandroid-support is declared as a dependency, link to it explicitly:
|
# If libandroid-support is declared as a dependency, link to it explicitly:
|
||||||
if [ "$TERMUX_PKG_DEPENDS" != "${TERMUX_PKG_DEPENDS/libandroid-support/}" ]; then
|
if [ "$TERMUX_PKG_DEPENDS" != "${TERMUX_PKG_DEPENDS/libandroid-support/}" ]; then
|
||||||
LDFLAGS+=" -landroid-support"
|
LDFLAGS+=" -Wl,--no-as-needed,-landroid-support,--as-needed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export GOOS=android
|
export GOOS=android
|
||||||
|
Loading…
x
Reference in New Issue
Block a user