Merge pull request #176007 from trofi/workaround-fno-common-for-ufoai

ufoai: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-03 17:00:37 +02:00 committed by GitHub
commit 48503d271e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
sha256 = "1drhh08cqqkwv1yz3z4ngkplr23pqqrdx6cp8c3isy320gy25cvb";
};
# Workaround build failure on -fno-common toolchains:
# ld: r_gl.h:52: multiple definition of `qglGenBuffers';
# r_gl.h:52: first defined here
# TODO: drop once release contains upstream fix:
# https://github.com/ufoai/ufoai/commit/8a3075fffdad294e
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''tar xvf "${srcData}"'';
configureFlags = [ "--enable-release" "--enable-sse" ]