From 0f704b3e0587da5f48be1e35cacb65bdb9a18495 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 11 Feb 2020 15:21:50 -0800 Subject: [PATCH] configure: Disable sections for clang. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 6b65ff65b..da3a6a3a2 100644 --- a/configure.ac +++ b/configure.ac @@ -568,6 +568,12 @@ dnl CXXFLAGS+=" -ffunction-sections" ]) ]) +AM_COND_IF([CLANG], +[ + CXXFLAGS+=" -fno-data-sections" + CXXFLAGS+=" -fno-function-sections" +]) + dnl dnl Compiler intrumentation dnl