mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
make-binaries: Fix building Termcap and Linux-PAM
Building GNU Termcap and Linux-PAM using the updated toolchain both failed, since crosstool-NG now uses GCC 14.x, which turns the "implicit-function-declaration" warning into an error. See: https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors Therefore, specify "CFLAGS=-Wno-error=implicit-function-declaration" to turn this error back into a warning.
This commit is contained in:
parent
5f849bdb3f
commit
a49ec4d583
1 changed files with 2 additions and 1 deletions
|
@ -547,6 +547,7 @@ build_deps()
|
|||
|
||||
info "Building Termcap $termcap_vsn for $arch-$libc ..."
|
||||
cd "$target_src_dir/$termcap_dir"
|
||||
sed -i 's/CFLAGS =/CFLAGS = -Wno-error=implicit-function-declaration/' 'Makefile.in'
|
||||
$configure --prefix="$prefix"
|
||||
cat >'config.h' <<-'EOF'
|
||||
#ifndef CONFIG_H
|
||||
|
@ -630,7 +631,7 @@ build_deps()
|
|||
$configure --prefix="$prefix" --includedir="$prefix/include/security" \
|
||||
--enable-static --disable-shared --disable-doc --disable-examples \
|
||||
--enable-db=no \
|
||||
CFLAGS="$CFLAGS -O3 -fPIC"
|
||||
CFLAGS="$CFLAGS -O3 -fPIC -Wno-error=implicit-function-declaration"
|
||||
make
|
||||
make install
|
||||
cd "$OLDPWD"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue