[mod_gsmopen]: Address gsmlib gcc-11 compat issue
With gcc-11 mod_gsmopen fails to compile: In file included from /home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include/gsmlib/gsm_sms.h:18, from gsmopen_protocol.cpp:44: /home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include/gsmlib/gsm_error.h:84:58: error: ISO C++17 does not allow dynamic exception specifications 84 | extern std::string getMEErrorText(const int errorCode) throw(GsmException); | ^~~~~ /home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include/gsmlib/gsm_error.h:165:59: error: ISO C++17 does not allow dynamic exception specifications 165 | extern std::string getSMSErrorText(const int errorCode) throw(GsmException); | ^~~~~ gsmlib has seen no upstream activity in years, so as a workaround this commit adds "--std=c++11" to mod_gsmopen's CXXFLAGS. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
d251a8ccee
commit
8cf93d9c15
|
@ -3,7 +3,7 @@ MODNAME=mod_gsmopen
|
|||
|
||||
mod_LTLIBRARIES = mod_gsmopen.la
|
||||
mod_gsmopen_la_SOURCES = mod_gsmopen.cpp gsmopen_protocol.cpp
|
||||
mod_gsmopen_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS)
|
||||
mod_gsmopen_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS) --std=c++11
|
||||
mod_gsmopen_la_CPPFLAGS = $(SPANDSP_CFLAGS) -I.
|
||||
mod_gsmopen_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LIBS)
|
||||
mod_gsmopen_la_LDFLAGS = -avoid-version -module -no-undefined -lctb-0.16 -lgsmme
|
||||
|
|
Loading…
Reference in New Issue