-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmxe-db6.dockerfile
66 lines (62 loc) · 1.62 KB
/
mxe-db6.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM golang:latest
MAINTAINER yshurik <[email protected]>
RUN apt update
RUN apt-get -y install \
autoconf \
automake \
autopoint \
bash \
bison \
bzip2 \
flex \
g++ \
g++-multilib \
gettext \
git \
gperf \
intltool \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libltdl-dev \
libssl-dev \
libtool-bin \
libxml-parser-perl \
make \
openssl \
p7zip-full \
patch \
perl \
pkg-config \
python \
ruby \
scons \
sed \
unzip \
wget \
xz-utils
WORKDIR /
RUN echo mark5
RUN git clone https://github.com/yshurik/mxe.git
WORKDIR /mxe
RUN sed -i 's/DEFAULT_MAX_JOBS := 6/DEFAULT_MAX_JOBS := 32/' /mxe/Makefile
RUN git checkout base0
ENV MXE_TARGETS "x86_64-w64-mingw32.static.posix"
ENV MXE_PLUGIN_DIRS plugins/gcc7
RUN make download-gcc
RUN make MXE_PLUGIN_DIRS="$MXE_PLUGIN_DIRS" MXE_TARGETS="x86_64-w64-mingw32.static.posix" cc
RUN make MXE_TARGETS="$MXE_TARGETS" boost
RUN make MXE_TARGETS="$MXE_TARGETS" cmake
RUN make MXE_TARGETS="$MXE_TARGETS" freetype
RUN make MXE_TARGETS="$MXE_TARGETS" fontconfig
RUN make MXE_TARGETS="$MXE_TARGETS" sqlite
RUN make MXE_TARGETS="$MXE_TARGETS" jpeg pcre2
RUN make MXE_TARGETS="$MXE_TARGETS" miniupnpc
RUN make MXE_TARGETS="$MXE_TARGETS" db
ADD openssl.mk /mxe/src/
RUN make MXE_TARGETS="$MXE_TARGETS" openssl
RUN make MXE_TARGETS="$MXE_TARGETS" freetds
ADD postgresql.mk /mxe/src
RUN make MXE_TARGETS="$MXE_TARGETS" postgresql
RUN make MXE_TARGETS="$MXE_TARGETS" libmysqlclient
RUN ls /mxe/usr/bin
COPY cpp_int.hpp /mxe/usr/x86_64-w64-mingw32.static.posix/include/boost/multiprecision/cpp_int.hpp