Skip to content

Commit

Permalink
Add mxe+dockcross support for docker-windows builds: https://github.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm authored and radare committed Dec 19, 2016
1 parent 9039228 commit fce0769
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mk/i686-w64-mingw32.static-gcc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ifeq (${_INCLUDE_MK_GCC_},)
_INCLUDE_MK_GCC_=1
CC=i686-w64-mingw32.static-gcc
RANLIB=i686-w64-mingw32.static-ranlib
ONELIB=0
OSTYPE=windows
LINK=
CC_AR=i686-w64-mingw32.static-ar -r ${LIBAR}
PICFLAGS=
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
CC_LIB=${CC} -shared -o
CFLAGS_INCLUDE=-I
LDFLAGS+=-static-libgcc
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
CFLAGS_OPT1=-O1
CFLAGS_OPT2=-O2
CFLAGS_OPT3=-O3
CFLAGS_DEBUG=-g
endif
18 changes: 18 additions & 0 deletions mk/x86_64-w64-mingw32.static-gcc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PREFIX=/usr/src/mxe/usr/
CC=x86_64-w64-mingw32.static-gcc
RANLIB=x86_64-w64-mingw32.static-ranlib
ONELIB=0
OSTYPE=windows
LINK=
CC_AR=x86_64-w64-mingw32.static-ar -r ${LIBAR}
PICFLAGS=
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
CC_LIB=${CC} -shared -o
CFLAGS_INCLUDE=-I
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
CFLAGS_OPT1=-O1
CFLAGS_OPT2=-O2
CFLAGS_OPT3=-O3
CFLAGS_DEBUG=-g

0 comments on commit fce0769

Please sign in to comment.