mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Use c++ 11 for MySQL 5.7 to fix build in mac (#56384)
https://github.com/NixOS/nixpkgs/issues/49174 shows us the error that we were experiencing. The last successful build was https://hydra.nixos.org/build/81938220, with the first failing here: https://hydra.nixos.org/build/82083071 The difference between these 2 builds seems to be Protobuf 3.4 being updated to Protobuf 3.6. Protobuf fails because the newer version uses newer C++ features. This commit makes MySQL 5.7 use C++ 11 to fix these issues.
This commit is contained in:
parent
c60d946fa3
commit
1aa13609b6
|
@ -57,7 +57,7 @@ self = stdenv.mkDerivation rec {
|
|||
"-DINSTALL_SHAREDIR=share/mysql"
|
||||
];
|
||||
|
||||
CXXFLAGS = "-fpermissive";
|
||||
CXXFLAGS = "-fpermissive -std=c++11";
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
||||
|
||||
prePatch = ''
|
||||
|
|
Loading…
Reference in a new issue