Merge pull request #176266 from trofi/workaround-fno-common-for-gtklp

gtklp: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-05 13:04:56 +02:00 committed by GitHub
commit bc411d92de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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" \