freebsd.libsysdecode: fix build for FreeBSD 15.0-RELEASE (#469139)

This commit is contained in:
John Ericson
2025-12-09 02:03:10 +00:00
committed by GitHub
@@ -6,8 +6,12 @@ mkDerivation {
"libexec/rtld-elf"
];
NIX_CFLAGS_COMPILE = [
"-Wno-unterminated-string-initialization"
];
preBuild = ''
sed -E -i -e "s|..INCLUDEDIR.|${stdenv.cc.libc}/include|g" $BSDSRCDIR/lib/libsysdecode/Makefile
sed -E -i -e "s|\\$\\{INCLUDEDIR\\}|${stdenv.cc.libc}/include|g" $BSDSRCDIR/lib/libsysdecode/Makefile
'';
MK_TESTS = "no";