e2fsprogs: fix w/musl, __GNUC_PREREQ is glibc-ism
Fixes compilation on non-glibc at minor cost since these are only used to guard the use of pragmas selectively disabling warnings based on the GCC version used.
This commit is contained in:
parent
0e530b037d
commit
a3f8a2c56f
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkgconfig texinfo ];
|
||||
buildInputs = [ libuuid gettext ];
|
||||
|
||||
# Only use glibc's __GNUC_PREREQ(X,Y) (checks if compiler is gcc version >= X.Y) when using glibc
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (stdenv.hostPlatform.libc != "glibc")
|
||||
"-D__GNUC_PREREQ(maj,min)=0";
|
||||
|
||||
configureFlags =
|
||||
if stdenv.isLinux then [
|
||||
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
||||
|
Loading…
Reference in New Issue
Block a user