mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
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:
parent
4c704d3306
commit
06a8f20762
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user