Make dynamic compilation not fail

Per instructions in
https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win64%20compiler/

cross-compilation of the dynamic libs require a symlink  /usr/local/mingw
pull/1867/head
Yuri Astrakhan 2021-12-28 16:12:13 -05:00
parent e8751e326b
commit 29558afee8
1 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,9 @@ ONBUILD RUN echo "Downloading '${GIT_TAG}' from https://github.com/aria2/aria2"
FROM build_${SOURCE}
ARG SOURCE GIT_TAG LIBARIA2 ARIA2_STATIC HOST
RUN cd /aria2 && \
RUN ln -s /usr/local/${HOST} /usr/local/mingw && \
mkdir -p /usr/local/mingw/lib && \
cd /aria2 && \
autoreconf -i && \
export LIBARIA2=${LIBARIA2} && \
export ARIA2_STATIC=${ARIA2_STATIC} && \