Compile with "-std=c++98" to fix FTBFS (Closes: #164)

~~~~
Mem.cpp:233:8: error: declaration of ‘void* operator new(size_t) throw (std::bad_alloc)’ has a different exception specifier
  233 | void * operator new (size_t size) throw (std::bad_alloc) {
      |        ^~~~~~~~
~~~~
This commit is contained in:
Dmitry Smirnov 2021-05-05 10:07:55 +10:00
parent 9146f05574
commit 7a2bca9649

View File

@ -125,7 +125,8 @@ else
#
# Use -Wpadded flag to indicate padded structures.
#
CPPFLAGS = -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable $(STATIC)
## FIXME: update standards to "-std=c++11", see #164.
CPPFLAGS = -g -Wall -pipe -fno-stack-protector -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -DPTHREADS -Wno-unused-but-set-variable -std=c++98 $(STATIC)
#LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
# apt-get install libssl-dev (to provide libssl and libcrypto)
# to build static libiconv.a do a './configure --enable$(STATIC)' then 'make'