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:
parent
c4b9851332
commit
d8bcc674c4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue