From 37eaff3b67e9c7e631a598c94d96b27fe7a8b18b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 11 Feb 2020 15:18:47 -0800 Subject: [PATCH] Tweak tls-models. --- construct/Makefile.am | 2 +- matrix/Makefile.am | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/construct/Makefile.am b/construct/Makefile.am index 7242c1570..a797782ed 100644 --- a/construct/Makefile.am +++ b/construct/Makefile.am @@ -1,7 +1,7 @@ prefix = @prefix@ AM_CXXFLAGS = \ - -ftls-model=local-exec \ + -ftls-model=initial-exec \ @EXTRA_CXXFLAGS@ \ ### diff --git a/matrix/Makefile.am b/matrix/Makefile.am index ec1c4765c..b755b42a8 100644 --- a/matrix/Makefile.am +++ b/matrix/Makefile.am @@ -6,10 +6,13 @@ DEFS += \ ### AM_CXXFLAGS = \ - -ftls-model=local-dynamic \ @EXTRA_CXXFLAGS@ \ ### +if GCC +AM_CXXFLAGS += -ftls-model=local-dynamic +endif + if DEBUG if GCC AM_CXXFLAGS += -fmax-errors=3