Merge pull request #176590 from trofi/workaround-fno-common-for-macopix

macopix: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-06-07 21:09:46 +00:00 committed by GitHub
commit f1fd44e283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Workaround build failure on -fno-common toolchains:
# ld: dnd.o:src/main.h:136: multiple definition of
# `MENU_EXT'; main.o:src/main.h:136: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
NIX_LDFLAGS = "-lX11";
meta = {