mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
{libsForQt5,qt6Packages}.maplibre-native-qt: fix build with GCC 16 (#572372)
This commit is contained in:
@@ -41,9 +41,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmake
|
||||
];
|
||||
|
||||
env.CXXFLAGS = toString [
|
||||
"-DQT_NO_USE_NODISCARD_FILE_OPEN"
|
||||
];
|
||||
env.CXXFLAGS = toString (
|
||||
[
|
||||
"-DQT_NO_USE_NODISCARD_FILE_OPEN"
|
||||
]
|
||||
# vendored maplibre-native builds with -Werror and trips GCC 16's -Wsfinae-incomplete
|
||||
++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "16") [
|
||||
"-Wno-error=sfinae-incomplete"
|
||||
]
|
||||
);
|
||||
|
||||
buildInputs = [
|
||||
qtlocation
|
||||
|
||||
Reference in New Issue
Block a user