nuweb: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: global.o:/build/nuweb-1.60/global.h:91: multiple definition of `current_sector'; main.o:/build/nuweb-1.60/global.h:91: first defined here
This commit is contained in:
parent
e04ca59317
commit
6cd8386d1d
|
@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -ie 's|nuweb -r|./nuweb -r|' Makefile
|
sed -ie 's|nuweb -r|./nuweb -r|' Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains like upstream
|
||||||
|
# gcc-10. Otherwise build fails as:
|
||||||
|
# ld: global.o:/build/nuweb-1.60/global.h:91: multiple definition of
|
||||||
|
# `current_sector'; main.o:/build/nuweb-1.60/global.h:91: first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make nuweb
|
make nuweb
|
||||||
make nuweb.pdf nuwebdoc.pdf all
|
make nuweb.pdf nuwebdoc.pdf all
|
||||||
|
|
Loading…
Reference in a new issue