Skip to content

Commit 50502af

Browse files
author
Martin Hansson
committed
Added standard support for CXXFLAGS.
1 parent 48a1b82 commit 50502af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $(SRCPARSER)/flex_lexer.o: $(SRCPARSER)/flex_lexer.cpp $(SRCPARSER)/bison_parser
7070
$(CXX) $(LIB_CFLAGS) -c -o $@ $< -Wno-sign-compare -Wno-unneeded-internal-declaration -Wno-register
7171

7272
%.o: %.cpp $(PARSER_CPP) $(LIB_H)
73-
$(CXX) $(LIB_CFLAGS) -c -o $@ $<
73+
$(CXX) $(LIB_CFLAGS) $(CXXFLAGS) -c -o $@ $<
7474

7575
$(SRCPARSER)/bison_parser.cpp: $(SRCPARSER)/bison_parser.y
7676
$(GMAKE) -C $(SRCPARSER)/ bison_parser.cpp
@@ -137,7 +137,7 @@ test: $(TEST_BUILD)
137137

138138
$(TEST_BUILD): $(TEST_ALL) $(LIB_BUILD)
139139
@mkdir -p $(BIN)/
140-
$(CXX) $(TEST_CFLAGS) $(TEST_CPP) -o $(TEST_BUILD) -lsqlparser -lstdc++
140+
$(CXX) $(CXXFLAGS) $(TEST_CFLAGS) $(TEST_CPP) -o $(TEST_BUILD) -lsqlparser -lstdc++
141141

142142
test_example:
143143
$(GMAKE) -C example/

0 commit comments

Comments
 (0)