gdal: fix build with latest poppler

Poppler 22.01.0 requires std=c++17:

https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1027
This commit is contained in:
Jan Tojnar 2022-01-27 17:20:17 +01:00
parent c4b9851332
commit d8bcc674c4

View file

@ -62,7 +62,11 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
CXXFLAGS = "-fpermissive";
CXXFLAGS = lib.concatStringsSep " " [
"-fpermissive"
# poppler uses std::optional
"-std=c++17"
];
# - Unset CC and CXX as they confuse libtool.
# - teach gdal that libdf is the legacy name for libhdf