File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ RUN curl -sSL https://ftp.postgresql.org/pub/source/v$PQ_VER/postgresql-$PQ_VER.
106
106
--with-openssl \
107
107
--prefix=$PREFIX --host=x86_64-unknown-linux-musl && \
108
108
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 ../.. && \
109
110
cd src/interfaces/libpq make -s -j$(nproc) all-static-lib && make -s install install-lib-static && \
110
111
cd ../../bin/pg_config && make -j $(nproc) && make install && \
111
112
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
128
129
# It needs the non-musl pg_config to set this up with libpq-dev (depending on libssl-dev)
129
130
# See https://github.com/sgrif/pq-sys/pull/18
130
131
ENV PATH=$PREFIX/bin:$PATH \
132
+ TARGET=x86_64_unknown_linux_musl \
133
+ HOST=x86_64_unknown_linux_gnu \
131
134
PKG_CONFIG_ALLOW_CROSS=true \
132
135
PKG_CONFIG_ALL_STATIC=true \
133
136
PQ_LIB_STATIC_X86_64_UNKNOWN_LINUX_MUSL=true \
134
137
PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig \
138
+ PKG_CONFIG_PATH_X86_64_UNKNOWN_LINUX_MUSL=$PREFIX/lib/pkgconfig \
135
139
PG_CONFIG_X86_64_UNKNOWN_LINUX_GNU=/usr/bin/pg_config \
140
+ PG_CONFIG_X86_64_UNKNOWN_LINUX_MUSL=/musl/bin/pg_config \
136
141
OPENSSL_STATIC=true \
137
142
OPENSSL_DIR=$PREFIX \
138
143
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
You can’t perform that action at this time.
0 commit comments