Skip to content

Commit b3f541f

Browse files
committed
depends: Prepend CPPFLAGS to C{,XX}FLAGS for CMake
This is similar to how we do it for qt.mk.
1 parent 8e121e5 commit b3f541f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

depends/funcs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ $(1)_autoconf += LDFLAGS="$$($(1)_ldflags)"
158158
endif
159159

160160
$(1)_cmake=env CC="$$($(1)_cc)" \
161-
CFLAGS="$$($(1)_cflags)" \
161+
CFLAGS="$$($(1)_cppflags) $$($(1)_cflags)" \
162162
CXX="$$($(1)_cxx)" \
163-
CXXFLAGS="$$($(1)_cxxflags)" \
163+
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
164164
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)"
165165
ifneq ($($(1)_type),build)
166166
ifneq ($(host),$(build))

0 commit comments

Comments
 (0)