Merge pull request #280618 from jansol/vsti-gcc13-fixes

surge-xt, zynaddsubfx: fix build
This commit is contained in:
Nick Cao 2024-01-13 10:26:50 -05:00 committed by GitHub
commit 7c7a1b2804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -71,6 +71,11 @@ stdenv.mkDerivation rec {
"-DSURGE_JUCE_PATH=${juce-lv2}"
];
CXXFLAGS = [
# GCC 13: error: 'uint32_t' has not been declared
"-include cstdint"
];
# JUCE dlopen's these at runtime, crashes without them
NIX_LDFLAGS = (toString [
"-lX11"

View file

@ -94,6 +94,11 @@ in stdenv.mkDerivation rec {
# Find FLTK without requiring an OpenGL library in buildInputs
++ lib.optional (guiModule == "fltk") "-DFLTK_SKIP_OPENGL=ON";
CXXFLAGS = [
# GCC 13: error: 'uint8_t' does not name a type
"-include cstdint"
];
doCheck = true;
nativeCheckInputs = [ cxxtest ruby ];