3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #173469 from trofi/workaround-fno-common-for-yeahwm

yeahwm: add -fcommon workaround
This commit is contained in:
Sandro 2022-05-19 19:08:35 +02:00 committed by GitHub
commit b8188dabc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
prefix="${placeholder "out"}" )
'';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: screen.o:(.bss+0x40): multiple definition of `fg'; client.o:(.bss+0x40): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
postInstall = ''
gzip -9 --stdout yeahwm.1 > yeahwm.1.gz
install -m644 yeahwm.1.gz ${placeholder "out"}/share/man/man1/