Skip to content

Commit b7d9ea7

Browse files
authored
fix #3: get GEOS building on modern compilers (#16)
1 parent 76e176e commit b7d9ea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ $(GEOS_DIR)/Makefile: $(C_DEPS_DIR)/geos-rebuild | bin/.submodules-initialized
558558
@# NOTE: If you change the CMake flags below, bump the version in
559559
@# $(C_DEPS_DIR)/geos-rebuild. See above for rationale.
560560
cd $(GEOS_DIR) && \
561-
cmake $(xcmake-flags) $(GEOS_SRC_DIR) -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC
561+
cmake $(xcmake-flags) $(GEOS_SRC_DIR) -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS="-fPIC -include cstddef -include cstdint"
562562
@# Copy geos/export.h to the capi include directory to avoid needing multiple include
563563
@# directories.
564564
mkdir $(GEOS_DIR)/capi/geos

c-deps/geos-rebuild

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Bump the version below when changing geos configure flags. Search for "BUILD
22
ARTIFACT CACHING" in build/common.mk for rationale.
33

4-
8
4+
9

0 commit comments

Comments
 (0)