mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +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 ..."
|
info "Building Termcap $termcap_vsn for $arch-$libc ..."
|
||||||
cd "$target_src_dir/$termcap_dir"
|
cd "$target_src_dir/$termcap_dir"
|
||||||
|
sed -i 's/CFLAGS =/CFLAGS = -Wno-error=implicit-function-declaration/' 'Makefile.in'
|
||||||
$configure --prefix="$prefix"
|
$configure --prefix="$prefix"
|
||||||
cat >'config.h' <<-'EOF'
|
cat >'config.h' <<-'EOF'
|
||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
|
@ -630,7 +631,7 @@ build_deps()
|
||||||
$configure --prefix="$prefix" --includedir="$prefix/include/security" \
|
$configure --prefix="$prefix" --includedir="$prefix/include/security" \
|
||||||
--enable-static --disable-shared --disable-doc --disable-examples \
|
--enable-static --disable-shared --disable-doc --disable-examples \
|
||||||
--enable-db=no \
|
--enable-db=no \
|
||||||
CFLAGS="$CFLAGS -O3 -fPIC"
|
CFLAGS="$CFLAGS -O3 -fPIC -Wno-error=implicit-function-declaration"
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue