From f1028b0230c00b8148713c3981d88930c04ce1b6 Mon Sep 17 00:00:00 2001
From: Jakub Jelinek <jakub@redhat.com>
Date: Fri, 4 May 2007 21:21:18 +0200
Subject: [PATCH] re PR libgomp/28482 (Cannot use libgomp in shared library)

	PR libgomp/28482
	* configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.

From-SVN: r124445
---
 libgomp/ChangeLog     | 3 +++
 libgomp/configure.tgt | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index d6f08fd90893..5e5f927cf795 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -2,6 +2,9 @@
 
 	* config/linux/proc.c: New file.
 
+	PR libgomp/28482
+	* configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
+
 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
 
 	* libgomp.texi (GOMP_CPU_AFFINITY): Updated.
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index 4790d66d8c63..f46210c3647c 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -11,14 +11,11 @@
 #  XLDFLAGS		Add extra link flags to use.
 
 # Optimize TLS usage by avoiding the overhead of dynamic allocation.
-# This does require that the library be present during process 
-# startup, so mark the library as not to be dlopened.
 if test $have_tls = yes ; then
   case "${target}" in
 
     *-*-linux*)
 	XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
-	XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen"
 	;;
   esac
 fi
-- 
GitLab