|
@@ -1,16 +1,18 @@
|
|
|
#! /bin/sh
|
|
|
|
|
|
# Compile libpq
|
|
|
-wget -nv https://github.com/postgres/postgres/archive/bab150045bd9766869f471ede88734ea0989261c.zip
|
|
|
+commit=b787d4ce6d910080065025bcd5f968544997271f
|
|
|
|
|
|
-unzip -q bab150045bd9766869f471ede88734ea0989261c.zip
|
|
|
-cd postgres-bab150045bd9766869f471ede88734ea0989261c
|
|
|
+wget -nv https://github.com/postgres/postgres/archive/$commit.zip
|
|
|
+unzip -q $commit.zip
|
|
|
+cd postgres-$commit
|
|
|
if [ "$1" = "batchmode" ]; then
|
|
|
- wget -nv https://www.postgresql.org/message-id/attachment/112272/v18-0001-libpq-batch-support.patch
|
|
|
- git apply ./v18-0001-libpq-batch-support.patch
|
|
|
+ wget -nv https://www.postgresql.org/message-id/attachment/115223/v22-0001-libpq-batch.patch
|
|
|
+ git apply ./v22-0001-libpq-batch.patch
|
|
|
fi
|
|
|
|
|
|
./configure --prefix=/usr CFLAGS='-O3 -march=native -flto'
|
|
|
cd src/interfaces/libpq
|
|
|
make all install -j4
|
|
|
+cp ../../../src/include/postgres_ext.h ../../../src/include/pg_config_ext.h /usr/include
|
|
|
cd /
|