Merge pull request #176588 from trofi/workaround-fno-common-for-ifm

ifm: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-08 00:10:54 +02:00 committed by GitHub
commit f8b1f22f03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,11 @@ stdenv.mkDerivation rec {
buildInputs = [ perl tk ]; # perl and wish are not run but written as shebangs.
# Workaround build failure on -fno-common toolchains:
# ld: libvars.a(vars-freeze-lex.o):src/libvars/vars-freeze-lex.l:23:
# multiple definition of `line_number'; ifm-main.o:src/ifm-main.c:46: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
enableParallelBuilding = false; # ifm-scan.l:16:10: fatal error: ifm-parse.h: No such file or directory
meta = with lib; {