Skip to content

Commit 52a82b4

Browse files
Update Dockerfile
1 parent 06a2ed6 commit 52a82b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

php-85/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ WORKDIR ${XML2_BUILD_DIR}/
183183
RUN CFLAGS="" \
184184
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
185185
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
186-
ICU_CONFIG="${INSTALL_DIR}/bin/icu-config" \
186+
PATH="${INSTALL_DIR}/bin:${PATH}" \
187+
ICU_CFLAGS="-I${INSTALL_DIR}/include" \
188+
ICU_LIBS="-L${INSTALL_DIR}/lib -licui18n -licuuc -licudata" \
187189
./configure \
188190
--prefix=${INSTALL_DIR} \
189191
--with-sysroot=${INSTALL_DIR} \
@@ -192,7 +194,7 @@ RUN CFLAGS="" \
192194
--with-html \
193195
--with-history \
194196
--enable-ipv6=no \
195-
--with-icu=${INSTALL_DIR} \
197+
--with-icu \
196198
--with-zlib \
197199
--without-python
198200
RUN make install \
@@ -476,6 +478,7 @@ RUN ./buildconf --force
476478
RUN CFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I/usr/include -ffunction-sections -fdata-sections" \
477479
CPPFLAGS="-fstack-protector-strong -fpic -fpie -O3 -I${INSTALL_DIR}/include -I/usr/include -ffunction-sections -fdata-sections" \
478480
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib -Wl,-O1 -Wl,--strip-all -Wl,--hash-style=both -pie" \
481+
PKG_CONFIG_PATH="${INSTALL_DIR}/lib/pkgconfig:${INSTALL_DIR}/lib64/pkgconfig" \
479482
./configure \
480483
--prefix=${INSTALL_DIR} \
481484
--enable-option-checking=fatal \

0 commit comments

Comments
 (0)