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:
Will Dietz 2018-08-28 06:45:52 -05:00
parent 0e530b037d
commit a3f8a2c56f

View file

@ -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"