Skip to content

Commit daf5b5a

Browse files
committed
fix bug
add json-c to the mac build fix m
1 parent 5b42f2b commit daf5b5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/build-postgres-darwin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mkdir -p $TRG_DIR $SRC_DIR $INSTALL_DIR
3838
# Install Homebrew dependencies
3939
brew update
4040
brew install python3 || true
41-
brew install pkg-config icu4c libxml2 libxslt openssl@3 zlib perl patchelf curl cmake pcre boost gettext
41+
brew install pkg-config icu4c libxml2 libxslt json-c openssl@3 zlib perl patchelf curl cmake pcre boost gettext
4242

4343
# Dynamically set environment variables for Homebrew dependencies using brew --prefix
4444
export PATH="$(brew --prefix icu4c)/bin:$(brew --prefix icu4c)/sbin:$(brew --prefix python3)/bin:$(brew --prefix pcre)/bin:$(brew --prefix gettext)/bin:$PATH"
@@ -138,6 +138,7 @@ if [ -n "$POSTGIS_VERSION" ]; then
138138
--with-geosconfig=$INSTALL_DIR/bin/geos-config \
139139
--with-projdir=$INSTALL_DIR \
140140
--with-gdalconfig=$INSTALL_DIR/bin/gdal-config \
141+
--with-jsondir="$(brew --prefix json-c)" \
141142
--without-protobuf
142143
make -j$(sysctl -n hw.ncpu)
143144
make install

scripts/build-postgres-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ POSTGIS_VERSION=
99
PGROUTING_VERSION=
1010
LITE_OPT=false
1111

12-
while getopts "v:i:g:o:l" opt; do
12+
while getopts "v:i:g:r:o:l" opt; do
1313
case $opt in
1414
v) PG_VERSION=$OPTARG ;;
1515
i) IMG_NAME=$OPTARG ;;

0 commit comments

Comments
 (0)