forked from mirrors/nixpkgs
superTuxKart: fix build with GCC 13
This commit is contained in:
parent
5062375b6a
commit
95c05c4102
|
@ -122,6 +122,13 @@ stdenv.mkDerivation rec {
|
|||
"-DOpenGL_GL_PREFERENCE=GLVND"
|
||||
];
|
||||
|
||||
CXXFLAGS = [
|
||||
# GCC 13: error: 'snprintf' was not declared in this scope
|
||||
"-include cstdio"
|
||||
# GCC 13: error: 'runtime_error' is not a member of 'std'
|
||||
"-include stdexcept"
|
||||
];
|
||||
|
||||
# Extract binary from built app bundle
|
||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir $out/bin
|
||||
|
|
Loading…
Reference in a new issue