Merge pull request #45703 from dtzWill/fix/e2fsprogs-musl
e2fsprogs: fix w/musl, __GNUC_PREREQ is glibc-ism
This commit is contained in:
commit
4c2d822fad
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig texinfo ];
|
nativeBuildInputs = [ pkgconfig texinfo ];
|
||||||
buildInputs = [ libuuid gettext ];
|
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 =
|
configureFlags =
|
||||||
if stdenv.isLinux then [
|
if stdenv.isLinux then [
|
||||||
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
"--enable-elf-shlibs" "--enable-symlink-install" "--enable-relative-symlinks"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user