ufoai: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: r_gl.h:52: multiple definition of `qglGenBuffers';
      r_gl.h:52: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-02 23:29:05 +01:00
parent 4c704d3306
commit 06a8f20762

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