Skip to content

Commit

Permalink
phonenum: Makefile - option to set C standard version
Browse files Browse the repository at this point in the history
- can be set via option CSTDVER
- defaults now to c++17
- GH #3659
  • Loading branch information
miconda committed Dec 5, 2023
1 parent a9e0296 commit 6dd5598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/phonenum/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ NAME=phonenum.so

CXX?=g++
LD?=g++
CSTDVER?="c++17"

LIBS+=-L$(LOCALBASE)/lib cphonenumber.o -lphonenumber -lgeocoding
DEFS+=-I$(LOCALBASE)/include
Expand All @@ -18,7 +19,7 @@ include ../../Makefile.modules

cphonenumber.o: cphonenumber.cpp cphonenumber.h
@echo "Compiling $<"
$(CXX) -std=c++11 $(CXXFLAGS) $(CFLAGS) $(C_DEFS) $(DEFS) -c $< -o $@
$(CXX) -std=$(CSTDVER) $(CXXFLAGS) $(CFLAGS) $(C_DEFS) $(DEFS) -c $< -o $@

phonenum.so: cphonenumber.o

Expand Down

0 comments on commit 6dd5598

Please sign in to comment.