termux-packages/packages/m4/build.sh
Henrik Grimler dbaca929fa
m4: link against libandroid-spawn
It doesn't build without it, it then tries to use a generated spawn
header and fails with something like:

```
  CC       gl_linkedhash_list.o
In file included from /home/builder/.termux-build/m4/src/lib/execute.c:72:
./spawn.h:690:17: error: use of undeclared identifier 'POSIX_SPAWN_RESETIDS'
            [(((POSIX_SPAWN_RESETIDS | POSIX_SPAWN_SETPGROUP
                ^
./spawn.h:690:40  CC       gl_list.o
: error: use of undeclared identifier 'POSIX_SPAWN_SETPGROUP'
            [(((POSIX_SPAWN_RESETIDS | POSIX_SPAWN_SETPGROUP
                                       ^
./spawn.h:691:19: error: use of undeclared identifier 'POSIX_SPAWN_SETSIGDEF'
                | POSIX_SPAWN_SETSIGDEF | POSIX_SPAWN_SETSIGMASK
                  ^
```

Solve this error by depending on libandroid-spawn instead.
2022-02-14 21:43:13 +01:00

18 lines
576 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/m4/m4.html
TERMUX_PKG_DESCRIPTION="Traditional Unix macro processor"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4.19
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/m4/m4-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96
TERMUX_PKG_DEPENDS="libandroid-spawn"
TERMUX_PKG_GROUPS="base-devel"
TERMUX_PKG_EXTRA_MAKE_ARGS="
HELP2MAN=:
"
termux_step_pre_configure() {
CPPFLAGS+=" -D__USE_FORTIFY_LEVEL=0"
}