From 73921a3c36f3043f4ef9be5c021913d17cb01964 Mon Sep 17 00:00:00 2001 From: Martin Hansson Date: Fri, 23 Aug 2024 14:20:27 +0000 Subject: [PATCH] Added standard support for CXXFLAGS. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 14efbd19..49a84bf1 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,7 @@ $(SRCPARSER)/flex_lexer.o: $(SRCPARSER)/flex_lexer.cpp $(SRCPARSER)/bison_parser $(CXX) $(LIB_CFLAGS) -c -o $@ $< -Wno-sign-compare -Wno-unneeded-internal-declaration -Wno-register %.o: %.cpp $(PARSER_CPP) $(LIB_H) - $(CXX) $(LIB_CFLAGS) -c -o $@ $< + $(CXX) $(LIB_CFLAGS) $(CXXFLAGS) -c -o $@ $< $(SRCPARSER)/bison_parser.cpp: $(SRCPARSER)/bison_parser.y $(GMAKE) -C $(SRCPARSER)/ bison_parser.cpp @@ -137,7 +137,7 @@ test: $(TEST_BUILD) $(TEST_BUILD): $(TEST_ALL) $(LIB_BUILD) @mkdir -p $(BIN)/ - $(CXX) $(TEST_CFLAGS) $(TEST_CPP) -o $(TEST_BUILD) -lsqlparser -lstdc++ + $(CXX) $(CXXFLAGS) $(TEST_CFLAGS) $(TEST_CPP) -o $(TEST_BUILD) -lsqlparser -lstdc++ test_example: $(GMAKE) -C example/