Commit a41666ec authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'build-no-asan-in-release' into 'develop'

feat(docker): release mode does not use anymore libasan

See merge request oai/cn5g/oai-cn5g-smf!164
parents d21a0c1b 1bcafc95
......@@ -65,7 +65,7 @@ RUN apt-get update && \
# Ubuntu 18 --> libasan4
# Ubuntu 20 --> libasan5
# Ubuntu 22 --> libasan6
libasan? \
# libasan? \
libgssapi-krb5-2 \
# Ubuntu 18/20 --> libldap-2.4-2
# Ubuntu 22 --> libldap-2.5-0
......
......@@ -97,7 +97,7 @@ RUN rm -f /etc/rhsm-host && \
microdnf update -y && \
microdnf install -y \
tzdata \
libasan \
# libasan \
procps-ng \
psmisc \
net-tools \
......
......@@ -87,7 +87,7 @@ RUN apt-get update && \
# Ubuntu 18 --> libasan4
# Ubuntu 20 --> libasan5
# Ubuntu 22 --> libasan6
libasan? \
# libasan? \
libgssapi-krb5-2 \
# Ubuntu 18/20 --> libldap-2.4-2
# Ubuntu 22 --> libldap-2.5-0
......
......@@ -125,7 +125,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
SET(ASAN asan)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Release")
SET(ASAN asan)
Message("no more asan in Release Mode")
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_boolean_option(LOG_OAI True "Thread safe logging API")
......
......@@ -104,11 +104,8 @@ int main(int argc, char** argv) {
Logger::init("smf", Options::getlogStdout(), Options::getlogRotFilelog());
Logger::smf_app().startup("Options parsed");
struct sigaction sigIntHandler;
sigIntHandler.sa_handler = my_app_signal_handler;
sigemptyset(&sigIntHandler.sa_mask);
sigIntHandler.sa_flags = 0;
sigaction(SIGINT, &sigIntHandler, NULL);
std::signal(SIGTERM, my_app_signal_handler);
std::signal(SIGINT, my_app_signal_handler);
// Config
smf_cfg.load(Options::getlibconfigConfig());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment