freeswitch: move CXXFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters 2026-02-15 18:58:39 +01:00
parent e71036e4c2
commit bf9bd3c0fd
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -159,17 +159,19 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error"
# https://github.com/signalwire/freeswitch/issues/2495
"-Wno-incompatible-pointer-types"
];
env = {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error"
# https://github.com/signalwire/freeswitch/issues/2495
"-Wno-incompatible-pointer-types"
];
# Using c++14 because of build error
# gsm_at.h:94:32: error: ISO C++17 does not allow dynamic exception specifications
CXXFLAGS = "-std=c++14";
# Using c++14 because of build error
# gsm_at.h:94:32: error: ISO C++17 does not allow dynamic exception specifications
CXXFLAGS = "-std=c++14";
CFLAGS = "-D_ANSI_SOURCE";
CFLAGS = "-D_ANSI_SOURCE";
};
hardeningDisable = [ "format" ];