Merge pull request #175258 from trofi/workaround-fno-common-for-super

super: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-03 05:58:38 +00:00 committed by GitHub
commit da93112356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,11 @@ stdenv.mkDerivation rec {
})
];
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
# -fcommon: workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: pam.o:/build/super-3.30.0/super.h:293: multiple definition of
# `Method'; super.o:/build/super-3.30.0/super.h:293: first defined here
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE -fcommon";
configureFlags = [
"--sysconfdir=/etc"