From 2903b2f357eb495c9badac1b2f74e65e1d1075bd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 14 Feb 2018 15:46:27 -0800 Subject: [PATCH] Another linker tweaking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trying to fix this warning: cc1: warning: command line option ‘-fno-threadsafe-statics’ is valid for C++/ObjC++ but not for C Let's see what the clang bots think of it. --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 8288bd7f..e3915bc8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -37,8 +37,8 @@ HBNOLIBCXXCFLAGS = else # Make sure we don't link to libstdc++ # No threadsafe statics in C++ as we do it ourselves -HBCFLAGS += -fno-threadsafe-statics -fno-exceptions -HBNOLIBCXXFLAGS = -fno-rtti +HBCFLAGS += -fno-exceptions +HBNOLIBCXXFLAGS = -fno-threadsafe-statics -fno-rtti endif if HAVE_OT -- GitLab