fix(main/libfann): Fix undefined symbols error with math functions

This fixes the errors as following.

ERROR: ./lib/libfann.so contains undefined symbols:
    13: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND exp
    14: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND sin
    15: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND cos
    22: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND pow
    31: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log
This commit is contained in:
termux-pacman-bot
2024-07-29 05:37:50 +00:00
parent 0b7d78b8f1
commit be68700d7f

View File

@@ -4,8 +4,13 @@ TERMUX_PKG_GROUPS="science"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.2.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://github.com/libfann/fann/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag" # As of 2022-08-29T00:33:40 no github releases are available.
termux_step_pre_configure() {
LDFLAGS+=" -lm"
}