Support the environment variables MINGW32_MAKE_ARGS and MINGW64_MAKE_ARGS

These environment variables can be used to provide additional
target-specific arguments when using the %mingw_make macro
This commit is contained in:
Erik van Pienbroek 2012-12-16 23:56:55 +01:00
parent ac04067e87
commit c277ca32f1
2 changed files with 17 additions and 12 deletions

View File

@ -54,16 +54,16 @@ popd \
} \
run_mingw_configure
%mingw_make \
run_mingw_make() \
{ \
%if 0%{?mingw_build_win32} == 1 \
make -C build_win32$MINGW_BUILDDIR_SUFFIX "$@" \
%endif \
%if 0%{?mingw_build_win64} == 1 \
make -C build_win64$MINGW_BUILDDIR_SUFFIX "$@" \
%endif \
} \
%mingw_make \
run_mingw_make() \
{ \
%if 0%{?mingw_build_win32} == 1 \
make -C build_win32$MINGW_BUILDDIR_SUFFIX "$@" $MINGW32_MAKE_ARGS \
%endif \
%if 0%{?mingw_build_win64} == 1 \
make -C build_win64$MINGW_BUILDDIR_SUFFIX "$@" $MINGW64_MAKE_ARGS \
%endif \
} \
run_mingw_make
%mingw_cmake \

View File

@ -1,8 +1,8 @@
%global debug_package %{nil}
Name: mingw-filesystem
Version: 96
Release: 3%{?dist}
Version: 97
Release: 1%{?dist}
Summary: MinGW cross compiler base filesystem and environment
Group: Development/Libraries
@ -248,6 +248,11 @@ install -m 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/mingw/
%changelog
* Sun Dec 16 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 97-1
- Added support for using the environment variables MINGW32_MAKE_ARGS and
MINGW64_MAKE_ARGS. These environment variables can be used to provide
additional target-specific arguments when using the %%mingw_make macro
* Mon Dec 3 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 96-3
- Added support for RHEL6