forked from pool/meson
2430271fed
- Add meson-suse-ify-macros.patch: Make the meson macros also work on openSUSE. We do not (yet?) have separate macros for CFLAGS, CXXFLAGS, FFLAGS and LDFLAGS, but only carry optflags. This is no issue, since openSUSE so far only added flags that work accross compilers/languages. This might change in the future, making the patch obsolete. OBS-URL: https://build.opensuse.org/request/show/449560 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=28
23 lines
909 B
Diff
23 lines
909 B
Diff
Index: meson-0.37.1/data/macros.meson
|
|
===================================================================
|
|
--- meson-0.37.1.orig/data/macros.meson
|
|
+++ meson-0.37.1/data/macros.meson
|
|
@@ -1,11 +1,12 @@
|
|
%__meson %{_bindir}/meson
|
|
+%_vpath_srcdir .
|
|
+%_vpath_builddir build
|
|
|
|
%meson \
|
|
- export CFLAGS="${CFLAGS:-%__global_cflags}" \
|
|
- export CXXFLAGS="${CXXFLAGS:-%__global_cxxflags}" \
|
|
- export FFLAGS="${FFLAGS:-%__global_fflags}" \
|
|
- export FCFLAGS="${FCFLAGS:-%__global_fcflags}" \
|
|
- export LDFLAGS="${LDFLAGS:-%__global_ldflags}" \
|
|
+ export CFLAGS="${CFLAGS:-%optflags}" \
|
|
+ export CXXFLAGS="${CXXFLAGS:-%optflags}" \
|
|
+ export FFLAGS="${FFLAGS:-%optflags}" \
|
|
+ export FCFLAGS="${FCFLAGS:-%optflags}" \
|
|
%{__meson} \\\
|
|
--buildtype=plain \\\
|
|
--prefix=%{_prefix} \\\
|