unicon-lang: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here
This commit is contained in:
parent
4c704d3306
commit
532885f58d
|
@ -14,6 +14,13 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
sourceRoot = ".";
|
sourceRoot = ".";
|
||||||
|
|
||||||
|
# Workaround build failure on -fno-common toolchains like upstream
|
||||||
|
# gcc-10. Otherwise build fails as:
|
||||||
|
# ld: ../common/ipp.o:(.bss+0x0): multiple definition of `lpath'; tglobals.o:(.bss+0x30): first defined here
|
||||||
|
# TODO: remove the workaround once upstream releases version past:
|
||||||
|
# https://sourceforge.net/p/unicon/unicon/ci/b1a65230233f3825d055aee913b4fdcf178a0eaf/
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
case "$(uname -a | sed 's/ /_/g')" in
|
case "$(uname -a | sed 's/ /_/g')" in
|
||||||
Darwin*Version_9*i386) sys=intel_macos;;
|
Darwin*Version_9*i386) sys=intel_macos;;
|
||||||
|
|
Loading…
Reference in a new issue