Skip to content

Commit b9a7ec6

Browse files
committed
use special compilation options to reduce the binary size
1 parent d17ad1e commit b9a7ec6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

repack-postgres-alpine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ docker run -i --rm -v ${TRG_DIR}:/usr/local/pg-dist $DOCKER_OPTS $IMG_NAME /bin/
7070
&& wget -O config/config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3' \
7171
&& wget -O config/config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3' \
7272
&& ./configure \
73-
CFLAGS='-O2' \
73+
CFLAGS='-Os' \
7474
PYTHON=/usr/bin/python3 \
7575
--prefix=/usr/local/pg-build \
7676
--enable-integer-datetimes \

repack-postgres-debian.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ docker run -i --rm -v ${TRG_DIR}:/usr/local/pg-dist $DOCKER_OPTS $IMG_NAME /bin/
6666
&& wget -O config/config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3' \
6767
&& wget -O config/config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=b8ee5f79949d1d40e8820a774d813660e1be52d3' \
6868
&& ./configure \
69-
CFLAGS='-O2 -DMAP_HUGETLB=0x40000' \
69+
CFLAGS='-Os -DMAP_HUGETLB=0x40000' \
7070
PYTHON=/usr/bin/python3 \
7171
--prefix=/usr/local/pg-build \
72-
--enable-debug \
7372
--enable-integer-datetimes \
7473
--enable-thread-safety \
7574
--with-ossp-uuid \

0 commit comments

Comments
 (0)