0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-03-14 05:20:17 +01:00

configure: Disable generating synchronization guards around static initializations.

This commit is contained in:
Jason Volk 2019-06-05 13:57:04 -07:00
parent b06670266d
commit 5ab5ef53cf

View file

@ -522,6 +522,15 @@ CXXFLAGS+=" -fvisibility-inlines-hidden"
dnl see gcc(1)
CXXFLAGS+=" -fnothrow-opt"
dnl This disables thread-safety for static variable initialization
dnl (specifically local static variables inside functions) which reduces
dnl generated code size and complexity. This is alright since construct is
dnl primarily single threaded. Even if other threads are spawned for special
dnl tasks we consider the likelyhood of a static initialization race to either
dnl be sufficiently low or simply immaterial for our uses of them.
dnl
CXXFLAGS+=" -fno-threadsafe-statics"
dnl
dnl Compiler warnings
dnl