MT#62181 move -std= option

Move from debian/rules into actual makefile. This is not Debian-specific
and needs to be set for a successful build.

Also it's not a preprocessor option, it's a C++ option.

Change-Id: I19be56f4e319778def5697b1fdbc77a9988ccb9b
mr13.4
Richard Fuchs 1 year ago
parent 1b695faabb
commit a8b96bac1a

@ -166,6 +166,7 @@ CXX = g++
CC = gcc
LD = $(CC)
CXXFLAGS += -std=c++20
CXXFLAGS += -Wall -Wno-reorder -Wno-unused -fPIC -g $(EXTRA_CXXFLAGS)
CFLAGS += -Wall -fPIC -g $(EXTRA_CFLAGS)

@ -6,7 +6,7 @@ CPPFLAGS += -I$(SRC) -fPIC -Wno-deprecated-declarations
DEBUG = -g
OPTIMIZE = -O2
GCCWARN = -Wall #-Wstrict-prototypes
CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
CXXFLAGS = -std=c++20 $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
ARFLAGS = rvs
VERSION = 0.8

@ -5,7 +5,7 @@ CPPFLAGS = -I$(SRC)
DEBUG = -g
#OPTIMIZE = -O2
GCCWARN = -Wall -Wstrict-prototypes
CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
CXXFLAGS = std=c++20 $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
LIB = ../libXmlRpc.a -lssl

2
debian/rules vendored

@ -9,7 +9,7 @@ EXCLUDED_MODULES=conf_auth examples/db_announce fast_ack gateway ivr mailbox mp3
EXCLUDED_DSM_MODULES=mod_aws mod_py
EXCLUDED_DSM_PY_MODULES=mod_aws mod_py
CPPFLAGS += -DHAVE_XMLRPCPP_SSL -std=c++20
CPPFLAGS += -DHAVE_XMLRPCPP_SSL
export USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)"

Loading…
Cancel
Save