File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
packages/php-wasm/compile/php Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 57
57
COPY ./libopenssl/ /root/builds-libopenssl/
58
58
RUN mkdir -p /libs/libopenssl
59
59
RUN if [ "$WITH_JSPI" = "yes" ]; then \
60
- cp -r /root/builds-libopenssl/jspi/dist/1.1.0h/root/lib /libs/libopenssl/1.1.0h; \
61
- cp -r /root/builds-libopenssl/jspi/dist/1.1.1/root/lib /libs/libopenssl/1.1.1; \
60
+ cp -r /root/builds-libopenssl/jspi/dist/root/lib /libs/libopenssl; \
62
61
else \
63
- cp -r /root/builds-libopenssl/asyncify/dist/1.1.0h/root/lib /libs/libopenssl/1.1.0h; \
64
- cp -r /root/builds-libopenssl/asyncify/dist/1.1.1/root/lib /libs/libopenssl/1.1.1; \
62
+ cp -r /root/builds-libopenssl/asyncify/dist/root/lib /libs/libopenssl; \
65
63
fi
66
64
67
65
# Build PHP
@@ -202,11 +200,7 @@ RUN if [ "$WITH_GD" = "yes" ]; \
202
200
# Add openssl if needed
203
201
RUN if [ "$WITH_OPENSSL" = "yes" ]; \
204
202
then \
205
- if [[ "${PHP_VERSION:0:1}" -lt "8" || ("${PHP_VERSION:0:1}" -eq "8" && "${PHP_VERSION:2:1}" -lt "4" ) ]]; then \
206
- cp -r /libs/libopenssl/1.1.0h/* /root/lib; \
207
- else \
208
- cp -r /libs/libopenssl/1.1.1/* /root/lib; \
209
- fi; \
203
+ cp -r /libs/libopenssl/* /root/lib; \
210
204
echo -n ' --with-openssl --with-openssl-dir=/root/lib ' >> /root/.php-configure-flags; \
211
205
echo -n ' -lssl -lcrypto ' >> /root/.emcc-php-wasm-flags; \
212
206
fi;
You can’t perform that action at this time.
0 commit comments