From bbd7fb00bf88abc1bd5cc7ac03c3470aa674a2f9 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 30 Oct 2015 13:47:10 +0100 Subject: [PATCH] Do not use CFLAGS when compiling C++ code Autoconf doesn't use them either. Thanks to Jirka Kubias for reporting this. --- snippets/linux.omk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/linux.omk b/snippets/linux.omk index 4b6271e..d047e39 100644 --- a/snippets/linux.omk +++ b/snippets/linux.omk @@ -104,7 +104,7 @@ c_o_COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(OMK_CPPFLAGS) \ $(CPPFLAGS) $(OMK_CFLAGS) $(CFLAGS) -DOMK_FOR_USER cc_o_COMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(OMK_CPPFLAGS) \ - $(CPPFLAGS) $(OMK_CFLAGS) $(CFLAGS) $(OMK_CXXFLAGS) $(CXXFLAGS) -DOMK_FOR_USER + $(CPPFLAGS) $(OMK_CXXFLAGS) $(CXXFLAGS) -DOMK_FOR_USER S_o_COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(OMK_CPPFLAGS) \ $(CPPFLAGS) $(OMK_CFLAGS) $(CFLAGS) $(ASFLAGS) -DOMK_FOR_USER -- 2.39.2