Skip to content

Commit be831ec

Browse files
committed
Make DEPGEN respect CPPFLAGS
Dependency generation needs to have access to external includes, for which CXXFLAGS are required. Not sure why gcc works without this, but clang doesn't.
1 parent 5ba200e commit be831ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CPPFLAGS += $(shell $(PKG_CONFIG) --cflags libpng zlib libenet 2>/dev/null) $(sh
1313

1414
STRIP = strip
1515

16-
DEPGEN = $(CXX) -MM
16+
DEPGEN = $(CXX) $(CPPFLAGS) -MM
1717
RM = rm -rf
1818
MKDIR = mkdir -p
1919

0 commit comments

Comments
 (0)