Skip to content

Commit 5c525e6

Browse files
committed
gmtp: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: gmtp-preferences.o:src/main.h:72: multiple definition of `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here
1 parent fdf4678 commit 5c525e6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkgs/applications/misc/gmtp/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ stdenv.mkDerivation {
1818

1919
enableParallelBuilding = true;
2020

21+
# Workaround build failure on -fno-common toolchains:
22+
# ld: gmtp-preferences.o:src/main.h:72: multiple definition of
23+
# `scrolledwindowMain'; gmtp-about.o:src/main.h:72: first defined here
24+
# TODO: can be removed when 1.4.0 is released.
25+
#NIX_CFLAGS_COMPILE = "-fcommon";
26+
2127
preFixup = ''
2228
gappsWrapperArgs+=(--add-flags "--datapath $out/share");
2329
'';

0 commit comments

Comments
 (0)