gdal: fix build with latest poppler
Poppler 22.01.0 requires std=c++17:
https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1027
commitd8bcc674c4bac48aedc7f421fcc2c3d0487a150a
authorJan Tojnar <jtojnar@gmail.com>
dateThu 27 Jan 2022, 17:20 (5 years ago)
parentc4b9851
pkgs/development/libraries/gdal/default.nix+5−1
@@ -62,7 +62,11 @@ stdenv.mkDerivation rec {
6262
6363 hardeningDisable = [ "format" ];
6464
65− CXXFLAGS = "-fpermissive";
65+ CXXFLAGS = lib.concatStringsSep " " [
66+ "-fpermissive"
67+ # poppler uses std::optional
68+ "-std=c++17"
69+ ];
6670
6771 # - Unset CC and CXX as they confuse libtool.
6872 # - teach gdal that libdf is the legacy name for libhdf