mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-16 14:51:02 +00:00
Ndk r26/clang 17 uses --no-undefined-version per default and gives this error when compiling libpopt: libtool: link: aarch64-linux-android-clang -shared -fPIC -DPIC .libs/popt.o .libs/poptparse.o .libs/poptconfig.o .libs/popthelp.o .libs/poptint.o -L/data/data/com.termux/files/usr/lib -landroid-glob -fstack-protector-strong -Oz -Wl,--version-script=/home/builder/.termux-build/libpopt/src/src/libpopt.vers -Wl,-rpath=/data/data/com.termux/files/usr/lib -fopenmp -Wl,--enable-new-dtags -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -fopenmp -Wl,-soname -Wl,libpopt.so -o .libs/libpopt.so ld.lld: error: version script assignment of 'LIBPOPT_0' to symbol '_fini' failed: symbol not defined ld.lld: error: version script assignment of 'LIBPOPT_0' to symbol '_init' failed: symbol not defined clang-17: error: linker command failed with exit code 1 (use -v to see invocation) The culprits, _init and _fini, seem to have never been part of libpopt, but have been in the version script since the beginning. Remove them from the version script to fix the error.
16 lines
593 B
Bash
16 lines
593 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.linuxfromscratch.org/blfs/view/svn/general/popt.html
|
|
TERMUX_PKG_DESCRIPTION="Library for parsing cmdline parameters"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.19
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=http://ftp.rpm.org/popt/releases/popt-1.x/popt-${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9
|
|
TERMUX_PKG_DEPENDS="libandroid-glob"
|
|
TERMUX_PKG_BREAKS="libpopt-dev"
|
|
TERMUX_PKG_REPLACES="libpopt-dev"
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -landroid-glob"
|
|
}
|