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} \\\