From 0157a378ca9ff9093bcb04e24a1ef7d20849b2cb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 6 Jan 2019 04:45:50 +0100 Subject: [PATCH] Enable -ftls-model=global-dynamic if available --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 3cb79e66..ee2e6b50 100644 --- a/configure.ac +++ b/configure.ac @@ -211,6 +211,9 @@ AC_CHECK_DEFINE([_FORTIFY_SOURCE], [], [ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CFLAGS="$CFLAGS -fvisibility=hidden"]) +AX_CHECK_COMPILE_FLAG([-ftls-model=global-dynamic], + [CFLAGS="$CFLAGS -ftls-model=global-dynamic"]) + AS_CASE([$host_os], [cygwin*|mingw*|msys|pw32*|cegcc*], [ ], [ AX_CHECK_COMPILE_FLAG([-fPIC], [CFLAGS="$CFLAGS -fPIC"]) ])