{libsForQt5,qt6Packages}.maplibre-native-qt: fix build with GCC 16 (#572372)

This commit is contained in:
Peder Bergebakken Sundt
2026-10-22 22:35:37 +00:00
committed by GitHub

View File

@@ -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