English Portuguese (Brazil)
%{mingw32_sysroot} %{_prefix}/i686-w64-mingw32/sys-root
And the Win64 target is provided by the macro:
%{mingw64_sysroot} %{_prefix}/x86_64-w64-mingw32/sys-root
Standard mingw RPM macros
The `+mingw-filesystem+` package provides a number of convenience macros for the cross compiled sysroot directories, and toolchain. It is mandatory to use these macros in all MinGW cross compiled packages submitted to Fedora.
Toolchain macros
The following macros are for the %build and %install section of the spec
Generic macros:
|Macro |Available in +
mingw-filesystem |Explanation
|mingw_cmake |>= 95 |Call the 'cmake' binary for all the configured targets
|mingw_cmake_kde4 |>= 95 |Call the 'cmake' binary for all the configured targets with KDE4 specific parameters set
|mingw_configure |>= 95 |Call the configure command for all the configured targets
|mingw_make |>= 95 |Call the 'make' command for all the configured targets
|mingw_make_build |>= 113|Call 'make -O -j<nprocs> V=1 VERBOSE=1' command for all configured targets
|mingw_make_install |>= 113 |Call 'make install DESTDIR=$RPM_BUILD_ROOT 'INSTALL=/usr/bin/install -p' for all configured targets
|mingw_meson |>= 104 |Call the meson binary for all the configured targets
|mingw_ninja |>= 104 |Call the ninja binary for all the configured targets
|mingw_objcopy |>= 95 |cross compiler 'objcopy' binary (which supports both Win32 and Win64 binaries)
|mingw_objdump |>= 95 |cross compiler 'objdump' binary (which supports both Win32 and Win64 binaries)
|mingw_qmake_qt4 |>= 95 |Call the Qt4 qmake binary for all configured targets (requires mingw32-qt-qmake and/or mingw64-qt-qmake to be installed)
|mingw_qmake_qt5 |>= 96 |Call the Qt5 qmake binary for all configured targets (requires mingw32-qt5-qmake and/or mingw64-qt5-qmake to be installed)
|mingw_strip |>= 95 |cross compiler 'strip' binary (which supports both Win32 and Win64 binaries)
Win32 specific macros:
|Macro |Available in +
mingw32-filesystem | Value |Explanation
|mingw32_ar |>= 95 |i686-w64-mingw32-ar |cross compiler 'ar' binary
|mingw32_cc |>= 95 |i686-w64-mingw32-gcc |cross compiler 'gcc' binary
|mingw32_cflags |>= 95 |-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 |Default compiler flags for C/C++ binaries
|mingw32_cmake |>= 95 | |Call the 'cmake' binary for the Win32 target
|mingw32_configure |>= 95 | |standard invocation for autotools 'configure' scripts
|mingw32_cpp |>= 95 |i686-w64-mingw32-gcc -E |cross compiler 'cpp' binary
|mingw32_env |>= 95 | |Set the correct environment variables for the Win32 target
|mingw32_host |>= 95 |i686-w64-mingw32 |Host platform for build
|mingw32_meson |>= 104 | |Call the meson binary for the Win32 target
|mingw32_ninja |>= 104 | |Call the ninja binary for the Win32 target
|mingw32_objcopy |>= 95 |i686-w64-mingw32-objcopy |cross compiler 'objcopy' binary
|mingw32_objdump |>= 95 |i686-w64-mingw32-objdump |cross compiler 'objdump' binary
|mingw32_pkg_config |>= 95 |i686-w64-mingw32-pkg-config |Call the pkg-config command for the Win32 target
|mingw32_qmake_qt4 |>= 95 |mingw32-qmake-qt4 |Call the Qt4 qmake command for the Win32 target
|mingw32_qmake_qt5 |>= 96 |mingw32-qmake-qt5 |Call the Qt5 qmake command for the Win32 target
|mingw32_ranlib |>= 95 |i686-w64-mingw32-ranlib |cross compiler 'ranlib' binary
|mingw32_strip |>= 95 |i686-w64-mingw32-strip |cross compiler 'strip' binary
|mingw32_target |>= 95 |i686-w64-mingw32 |Target platform for build
Win64 specific macros:
|Macro |Available in +
mingw64-filesystem | Value |Explanation
|mingw64_ar |>= 95 |x86_64-w64-mingw32-ar |cross compiler 'ar' binary
|mingw64_cc |>= 95 |x86_64-w64-mingw32-gcc |cross compiler 'gcc' binary
|mingw64_cflags |>= 95 |-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 |Default compiler flags for C/C++ binaries
|mingw64_cmake |>= 95 | |Call the 'cmake' binary for the Win64 target
|mingw64_configure |>= 95 | |standard invocation for autotools 'configure' scripts
|mingw64_cpp |>= 95 |x86_64-w64-mingw32-gcc -E |cross compiler 'cpp' binary
|mingw64_env |>= 95 | |Set the correct environment variables for the Win64 target
|mingw64_host |>= 95 |x86_64-w64-mingw32 |Host platform for build
|mingw64_meson |>= 104 | |Call the meson binary for the Win64 target
|mingw64_ninja |>= 104 | |Call the ninja binary for the Win64 target
|mingw64_objcopy |>= 95 |x86_64-w64-mingw32-objcopy |cross compiler 'objcopy' binary
|mingw64_objdump |>= 95 |x86_64-w64-mingw32-objdump |cross compiler 'objdump' binary
|mingw64_pkg_config |>= 95 |x86_64-w64-mingw32-pkg-config |Call the pkg-config command for the Win64 target
|mingw64_qmake_qt4 |>= 95 |mingw64-qmake-qt4 |Call the Qt4 qmake command for the Win64 target
|mingw64_qmake_qt5 |>= 96 |mingw64-qmake-qt5 |Call the Qt5 qmake command for the Win64 target
|mingw64_ranlib |>= 95 |x86_64-w64-mingw32-ranlib |cross compiler 'ranlib' binary
|mingw64_strip |>= 95 |x86_64-w64-mingw32-strip |cross compiler 'strip' binary
|mingw64_target |>= 95 |x86_64-w64-mingw32 |Target platform for build
Filesystem location macros
The following macros are for use in %build, %install and %files sections of the RPM spec
For the Win32 target:
|mingw32_bindir |%\{mingw32_prefix}/bin |Location of Windows executables.
|mingw32_datadir |%\{mingw32_prefix}/share |Shared data used under Windows.
|mingw32_docdir |%\{mingw32_prefix}/share/doc |Documentation.
|mingw32_infodir |%\{mingw32_prefix}/share/info |Info files (see note below).
|mingw32_includedir |%\{mingw32_prefix}/include |Header files used when cross-compiling for Windows.
|mingw32_libdir |%\{mingw32_prefix}/lib |Windows libraries (see sections below).
|mingw32_libexecdir |%\{mingw32_prefix}/libexec |
|mingw32_mandir |%\{mingw32_prefix}/share/man |Man pages (see note below).
|mingw32_prefix |%\{mingw32_sysroot}/mingw |Windows equivalent of %\{_prefix}, required by MinGW.
|mingw32_sbindir |%\{mingw32_prefix}/sbin |
|mingw32_sysconfdir |%\{mingw32_prefix}/etc |Configuration files used when running under Windows.
|mingw32_sysroot |%\{_prefix}/i686-w64-mingw32/sys-root |Windows system root.
For the Win64 target:
|mingw64_bindir |%\{mingw64_prefix}/bin |Location of Windows executables.
|mingw64_datadir |%\{mingw64_prefix}/share |Shared data used under Windows.
|mingw64_docdir |%\{mingw64_prefix}/share/doc |Documentation.
|mingw64_infodir |%\{mingw64_prefix}/share/info |Info files (see note below).
|mingw64_includedir |%\{mingw64_prefix}/include |Header files used when cross-compiling for Windows.
|mingw64_libdir |%\{mingw64_prefix}/lib |Windows libraries (see sections below).
|mingw64_libexecdir |%\{mingw64_prefix}/libexec |
|mingw64_mandir |%\{mingw64_prefix}/share/man |Man pages (see note below).
|mingw64_prefix |%\{mingw64_sysroot}/mingw |Windows equivalent of %\{_prefix}, required by MinGW.
|mingw64_sbindir |%\{mingw64_prefix}/sbin |
|mingw64_sysconfdir |%\{mingw64_prefix}/etc |Configuration files used when running under Windows.
|mingw64_sysroot |%\{_prefix}/x86_64-w64-mingw32/sys-root |Windows system root.
Compilation of binaries