Skip to content

Commit dd59630

Browse files
committed
extra evars + manually build port
Signed-off-by: clux <[email protected]>
1 parent e31d9f5 commit dd59630

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile.stable

+5
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ RUN curl -sSL https://ftp.postgresql.org/pub/source/v$PQ_VER/postgresql-$PQ_VER.
106106
--with-openssl \
107107
--prefix=$PREFIX --host=x86_64-unknown-linux-musl && \
108108
cd src/common && make -s -j$(nproc) all && make -s install && cd ../.. && \
109+
cd src/port && make -s -j$(nproc) all && make -s install && cd ../.. && \
109110
cd src/interfaces/libpq make -s -j$(nproc) all-static-lib && make -s install install-lib-static && \
110111
cd ../../bin/pg_config && make -j $(nproc) && make install && \
111112
cd .. && rm -rf postgresql-$PQ_VER
@@ -128,11 +129,15 @@ RUN curl -sSL https://www.sqlite.org/2022/sqlite-autoconf-$SQLITE_VER.tar.gz | t
128129
# It needs the non-musl pg_config to set this up with libpq-dev (depending on libssl-dev)
129130
# See https://github.com/sgrif/pq-sys/pull/18
130131
ENV PATH=$PREFIX/bin:$PATH \
132+
TARGET=x86_64_unknown_linux_musl \
133+
HOST=x86_64_unknown_linux_gnu \
131134
PKG_CONFIG_ALLOW_CROSS=true \
132135
PKG_CONFIG_ALL_STATIC=true \
133136
PQ_LIB_STATIC_X86_64_UNKNOWN_LINUX_MUSL=true \
134137
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig \
138+
PKG_CONFIG_PATH_X86_64_UNKNOWN_LINUX_MUSL=$PREFIX/lib/pkgconfig \
135139
PG_CONFIG_X86_64_UNKNOWN_LINUX_GNU=/usr/bin/pg_config \
140+
PG_CONFIG_X86_64_UNKNOWN_LINUX_MUSL=/musl/bin/pg_config \
136141
OPENSSL_STATIC=true \
137142
OPENSSL_DIR=$PREFIX \
138143
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \

0 commit comments

Comments
 (0)