... | ... | @@ -28,12 +28,31 @@ Unlike compilers in Linux or OS X, which can usually target 32-bit and 64-bit en |
|
|
|
|
|
#### Preparing Environment in Fedora (24)
|
|
|
|
|
|
32-bit environment:
|
|
|
```
|
|
|
dnf install mingw32-gcc mingw32-winpthreads-static
|
|
|
dnf install mingw64-gcc mingw64-winpthreads-static
|
|
|
```
|
|
|
|
|
|
64-bit environment:
|
|
|
#### Preparing Environment in Gentoo
|
|
|
|
|
|
The installation is performed in three steps. First install crossdev, second install the basic environment according to [this page](https://wiki.gentoo.org/wiki/Mingw):
|
|
|
```
|
|
|
dnf install mingw64-gcc mingw64-winpthreads-static
|
|
|
emerge crossdev
|
|
|
|
|
|
crossdev --ov-output /usr/portage i686-w64-mingw32
|
|
|
crossdev --ov-output /usr/portage x86_64-w64-mingw32
|
|
|
```
|
|
|
|
|
|
Unfortunately this wont install libwinpthread. You must modify the USE flags of the mingw64-runtime. This use flags cannot be set before crossdev invocation otherwise the installation will fail.
|
|
|
|
|
|
```
|
|
|
echo cross-i686-w64-mingw32/mingw64-runtime libraries >> /etc/portage/package.use/cross-i686-w64-mingw32-custom
|
|
|
echo cross-x86_64-w64-mingw32/mingw64-runtime libraries >> /etc/portage/package.use/cross-x86_64-w64-mingw32-custom
|
|
|
```
|
|
|
|
|
|
Now you can use the emerge command to rebuild the packages with the modified USE flags.
|
|
|
|
|
|
```
|
|
|
emerge -N1 cross-i686-w64-mingw32/mingw64-runtime
|
|
|
emerge -N1 cross-x86_64-w64-mingw32/mingw64-runtime
|
|
|
``` |
|
|
\ No newline at end of file |