mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 05:44:08 +01:00
freeswitch: move CXXFLAGS into env for structuredAttrs
This commit is contained in:
parent
e71036e4c2
commit
bf9bd3c0fd
1 changed files with 11 additions and 9 deletions
|
|
@ -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" ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue