gtklp: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar';
      file.o:libgtklp/libgtklp.h:83: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-04 17:34:19 +01:00
parent 4ae74bbc94
commit d201f4c01b

View File

@ -31,6 +31,11 @@ stdenv.mkDerivation rec {
./patches/autoconf.patch
];
# Workaround build failure on -fno-common toolchains:
# ld: libgtklp.a(libgtklp.o):libgtklp/libgtklp.h:83: multiple definition of `progressBar';
# file.o:libgtklp/libgtklp.h:83: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
substituteInPlace include/defaults.h --replace "netscape" "firefox"
substituteInPlace include/defaults.h --replace "http://localhost:631/sum.html#STANDARD_OPTIONS" \