summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-05-12 13:33:01 -0400
committerMike Gilbert <floppym@gentoo.org>2018-05-24 00:46:18 -0400
commit9400e62868c38e32b59879a8967856fd58c7fc4c (patch)
tree0f1dd38ae9f87064cbd589a1a5d9334bc38da0ea /eclass
parentmeson.eclass: include CFLAGS/CXXFLAGS in c_link_args/cpp_link_args (diff)
downloadgentoo-9400e62868c38e32b59879a8967856fd58c7fc4c.tar.gz
gentoo-9400e62868c38e32b59879a8967856fd58c7fc4c.tar.bz2
gentoo-9400e62868c38e32b59879a8967856fd58c7fc4c.zip
meson.eclass: include CPPFLAGS in {c,cpp,objc,objcpp}_args
Diffstat (limited to 'eclass')
-rw-r--r--eclass/meson.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index 48a39d0fa076..731177e7fbf6 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -166,13 +166,13 @@ _meson_create_cross_file() {
strip = '$(tc-getSTRIP)'
[properties]
- c_args = $(_meson_env_array "${CFLAGS}")
+ c_args = $(_meson_env_array "${CFLAGS} ${CPPFLAGS}")
c_link_args = $(_meson_env_array "${CFLAGS} ${LDFLAGS}")
- cpp_args = $(_meson_env_array "${CXXFLAGS}")
+ cpp_args = $(_meson_env_array "${CXXFLAGS} ${CPPFLAGS}")
cpp_link_args = $(_meson_env_array "${CXXFLAGS} ${LDFLAGS}")
fortran_args = $(_meson_env_array "${FCFLAGS}")
- objc_args = $(_meson_env_array "${OBJCFLAGS}")
- objcpp_args = $(_meson_env_array "${OBJCXXFLAGS}")
+ objc_args = $(_meson_env_array "${OBJCFLAGS} ${CPPFLAGS}")
+ objcpp_args = $(_meson_env_array "${OBJCXXFLAGS} ${CPPFLAGS}")
[host_machine]
system = '${system}'