From 8d698288fb574fc65dc78dfac5ae833f68613d00 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Wed, 28 Nov 2018 22:13:27 -0800 Subject: [PATCH] set the export-dynamic linker flag on linux (cherry picked from commit 4ae085a066c24d97893ec82a37709e71cfcdfac8) --- configure | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 581109592b..4a853ea3b9 100755 --- a/configure +++ b/configure @@ -23749,6 +23749,7 @@ if test "yes" = "$dlopen"; then case $host in *-linux*|*-gnu*) SO_CFLAGS="-fPIC" + LDFLAGS="${LDFLAGS} -Wl,--export-dynamic" SO_LDFLAGS="" if test "yes" = "$have_dl" then diff --git a/configure.ac b/configure.ac index 92652d290b..35c930b22e 100644 --- a/configure.ac +++ b/configure.ac @@ -5078,6 +5078,7 @@ if test "yes" = "$dlopen"; then case $host in *-linux*|*-gnu*) SO_CFLAGS="-fPIC" + LDFLAGS="${LDFLAGS} -Wl,--export-dynamic" SO_LDFLAGS="" if test "yes" = "$have_dl" then