drachtio / drachtio-server

A SIP call processing server that can be controlled via nodejs applications
https://drachtio.org
MIT License
239 stars 92 forks source link

-O0 overwritten by -O2 #224

Open asarubbo opened 1 year ago

asarubbo commented 1 year ago

Hello Dave,

the script at https://github.com/jambonz/jambonz-infrastructure/blob/main/packer/jambonz-mini/scripts/install_drachtio.sh is doing: ../configure CPPFLAGS='-DNDEBUG -g -O0'

but at compile time it gots overwritten by -O2 (because gcc/g++ take the latest):

g++ -std=c++17 -DHAVE_CONFIG_H -I. -I.. -I../deps/boost -I../deps/sofia-sip/libsofia-sip-ua/su -I../deps/sofia-sip/libsofia-sip-ua/nta -I../deps/sofia-sip/libsofia-sip-ua/sip -I../deps/sofia-sip/libsofia-sip-ua/msg -I../deps/sofia-sip/libsofia-sip-ua/url -I../deps/sofia-sip/libsofia-sip-ua/tport -I../deps/sofia-sip/libsofia-sip-ua/bnf -I../deps/jansson/src -I../deps//cpp-bredis/include -I../deps/prometheus-cpp/build/include -I/usr/local/include -D_REENTRANT -DDRACHTIO_VERSION=\"v0.8.18\" -Wno-error=deprecated-declarations -DBOOST_ALLOW_DEPRECATED_HEADERS  -DNDEBUG -g -O0  -g -O2 -MT src/drachtio-main.o -MD -MP -MF src/.deps/drachtio-main.Tpo -c -o src/drachtio-main.o `test -f 'src/main.cpp' || echo '../'`src/main.cpp