nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

thttpd: fix build with GCC >= 14

Unfortunately there is no way in the configure script to persist CFLAGS
from configure to the final build (CFLAGS is respected by configure, but
by configure only). This roughly matches what alpine is doing now: They
pass -fpermissive to configure via CFLAGS to avoid -Wimplicit-int, the
-Wimplicit-function-declaration in the actual build seemingly never
happens on Alpine, probably due to musl.

+7
+7
pkgs/by-name/th/thttpd/package.nix
··· 19 19 sed -i -e 's/chmod 2755/chmod 755/' extras/Makefile.in 20 20 ''; 21 21 22 + # Work around failures with GCC 14, upstream is inactive unfortunately 23 + # https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors 24 + NIX_CFLAGS_COMPILE = [ 25 + "-Wno-error=implicit-int" 26 + "-Wno-error=implicit-function-declaration" 27 + ]; 28 + 22 29 buildInputs = [ 23 30 libxcrypt 24 31 ];