libtar: fix Darwin build by setting -std=gnu17

The autoconf update on staging-next forces Clang into C23 mode, which
rejects K&R-style function declarations in compat/basename.c

Pin to gnu17 to restore the previous default

Refs: https://github.com/NixOS/nixpkgs/issues/511329
This commit is contained in:
FlameFlag
2026-04-19 12:57:57 +03:00
parent f9981bbabf
commit 6cb55fa549

View File

@@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [ "CFLAGS=-std=gnu17" ];
# libtar/Makefile.in hardcodes `INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s`,
# which runs bare `strip` during `make install`. This fails in cross builds
# where only the prefixed strip (e.g. aarch64-unknown-linux-gnu-strip) is