Another linker tweaking
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 14 Feb 2018 23:46:27 +0000 (15:46 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 14 Feb 2018 23:46:27 +0000 (15:46 -0800)
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

index 8288bd7..e3915bc 100644 (file)
@@ -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