Allow overriding CFLAGS/CXXFLAGS/LDFLAGS for %%mingw_meson
This commit is contained in:
parent
9e2af70416
commit
f88d07b914
@ -153,7 +153,9 @@
|
|||||||
|
|
||||||
%mingw32_meson %{mingw32_env} ; \
|
%mingw32_meson %{mingw32_env} ; \
|
||||||
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
||||||
export CFLAGS="%{mingw32_cflags}" CXXFLAGS="%{mingw32_cflags}" LDFLAGS="%{mingw32_ldflags}"; \\\
|
CFLAGS="${MINGW32_CFLAGS-%mingw32_cflags}"; export CFLAGS; \\\
|
||||||
|
CPPFLAGS="${MINGW32_CPPFLAGS-%mingw32_cppflags}"; export CPPFLAGS; \\\
|
||||||
|
LDFLAGS="${MINGW32_LDFLAGS:-%mingw32_ldflags}"; export LDFLAGS; \\\
|
||||||
if test -f meson.build; then __mingw32_topdir=.; \\\
|
if test -f meson.build; then __mingw32_topdir=.; \\\
|
||||||
elif test -f ../meson.build; then __mingw32_topdir=..; \\\
|
elif test -f ../meson.build; then __mingw32_topdir=..; \\\
|
||||||
else __mingw32_topdir=""; fi; \\\
|
else __mingw32_topdir=""; fi; \\\
|
||||||
|
@ -153,7 +153,9 @@
|
|||||||
|
|
||||||
%mingw64_meson %{mingw64_env} ; \
|
%mingw64_meson %{mingw64_env} ; \
|
||||||
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
unset CC CFLAGS CPPFLAGS CXX CXXFLAGS LD LDFLAGS; \\\
|
||||||
export CFLAGS="%{mingw64_cflags}" CXXFLAGS="%{mingw64_cflags}" LDFLAGS="%{mingw64_ldflags}"; \\\
|
CFLAGS="${MINGW64_CFLAGS-%mingw64_cflags}"; export CFLAGS; \\\
|
||||||
|
CPPFLAGS="${MINGW64_CPPFLAGS-%mingw64_cppflags}"; export CPPFLAGS; \\\
|
||||||
|
LDFLAGS="${MINGW64_LDFLAGS:-%mingw64_ldflags}"; export LDFLAGS; \\\
|
||||||
if test -f meson.build; then __mingw64_topdir=.; \\\
|
if test -f meson.build; then __mingw64_topdir=.; \\\
|
||||||
elif test -f ../meson.build; then __mingw64_topdir=..; \\\
|
elif test -f ../meson.build; then __mingw64_topdir=..; \\\
|
||||||
else __mingw64_topdir=""; fi; \\\
|
else __mingw64_topdir=""; fi; \\\
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||||
|
|
||||||
Name: mingw-filesystem
|
Name: mingw-filesystem
|
||||||
Version: 117
|
Version: 118
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: MinGW cross compiler base filesystem and environment
|
Summary: MinGW cross compiler base filesystem and environment
|
||||||
|
|
||||||
@ -318,6 +318,9 @@ install -m 0644 %{SOURCE19} $RPM_BUILD_ROOT%{_datadir}/mingw/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 07 2021 Sandro Mani <manisandro@gmail.com> - 118-1
|
||||||
|
- Allow overriding CFLAGS/CXXFLAGS/LDFLAGS for %%mingw_meson
|
||||||
|
|
||||||
* Mon Feb 01 2021 Sandro Mani <manisandro@gmail.com> - 117-1
|
* Mon Feb 01 2021 Sandro Mani <manisandro@gmail.com> - 117-1
|
||||||
- Filter Windows API umbrella libraries from requires
|
- Filter Windows API umbrella libraries from requires
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user