super: add -fcommon workaround
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
This commit is contained in:
parent
0831857a14
commit
6b0031dbbe
1 changed files with 5 additions and 1 deletions
|
@ -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 = [
|
configureFlags = [
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
|
|
Loading…
Reference in a new issue