diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-11-25 21:31:44 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-26 11:48:36 +0100 |
commit | a6056c52fe465f90cb00f1705eb12832178f18e1 (patch) | |
tree | 3efe154d1975fcb0ab34cf4b2fe47a922b675ad9 /DOCS | |
parent | 134d2475e659f7d84e7e949bc529dc9b10cb3c3e (diff) |
DOCS/crosscompile-mingw: update
Add `.static` for MXE targets.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/crosscompile-mingw.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/DOCS/crosscompile-mingw.md b/DOCS/crosscompile-mingw.md index b5da02e9c3..2fdbe7bb4f 100644 --- a/DOCS/crosscompile-mingw.md +++ b/DOCS/crosscompile-mingw.md @@ -43,8 +43,8 @@ Example with MXE # or more! cd /opt -git clone https://github.com/mxe/mxe mingw -cd mingw +git clone https://github.com/mxe/mxe mxe +cd mxe # Set build options. @@ -57,10 +57,10 @@ echo "JOBS := 4" >> settings.mk # The MXE_TARGET environment variable builds MinGW-w64 for 32 bit targets. # Alternatively, you can specify this in the make command by appending # "MXE_TARGETS=i686-w64-mingw32" to the end of command: -echo "MXE_TARGETS := i686-w64-mingw32" >> settings.mk +echo "MXE_TARGETS := i686-w64-mingw32.static" >> settings.mk # If you want to build 64 bit version, use this: -# echo "MXE_TARGETS := x86_64-w64-mingw32" >> settings.mk +# echo "MXE_TARGETS := x86_64-w64-mingw32.static" >> settings.mk # Build required packages. The following provide a minimum required to build # mpv. @@ -68,16 +68,16 @@ echo "MXE_TARGETS := i686-w64-mingw32" >> settings.mk make gcc ffmpeg libass jpeg pthreads # Add MXE binaries to $PATH -export PATH=/opt/mingw/usr/bin/:$PATH +export PATH=/opt/mxe/usr/bin/:$PATH # Build mpv. The target will be used to automatically select the name of the -# build tools involved (e.g. it will use i686-w64-mingw32-gcc). +# build tools involved (e.g. it will use i686-w64-mingw32.static-gcc). cd .. git clone https://github.com/mpv-player/mpv.git cd mpv -DEST_OS=win32 TARGET=i686-w64-mingw32 ./waf configure +DEST_OS=win32 TARGET=i686-w64-mingw32.static ./waf configure # Or, if 64 bit version, -# DEST_OS=win32 TARGET=x86_64-w64-mingw32 ./waf configure +# DEST_OS=win32 TARGET=x86_64-w64-mingw32.static ./waf configure ./waf build ``` |