3
0
Fork 0
forked from mirrors/nixpkgs

netbsd.compat: don't use musl's sys/cdefs.h

When building glib statically, a Meson check would fail, because the
check would interpret any warning as failure, and it would see the
warning that the musl sys/cdefs.h emits about the file being
deprecated.
This commit is contained in:
Alyssa Ross 2021-11-03 16:55:36 +00:00
parent 7be5fbf70f
commit 2b9c5958a1
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -192,6 +192,12 @@ in lib.makeScopeWithSplicing
configurePlatforms = [ "build" "host" ];
configureFlags = [
"--cache-file=config.cache"
] ++ lib.optionals stdenv.hostPlatform.isMusl [
# We include this header in our musl package only for legacy
# compatibility, and compat works fine without it (and having it
# know about sys/cdefs.h breaks packages like glib when built
# statically).
"ac_cv_header_sys_cdefs_h=no"
];
nativeBuildInputs = with buildPackages.netbsd; commonDeps ++ [