From 4fe448ddf9b174eec3a25619621a8e1b045c72ec Mon Sep 17 00:00:00 2001
From: Emmanuel Maillard <e.rsz@libertysurf.fr>
Date: Tue, 1 Mar 2005 10:46:27 +0000
Subject: [PATCH] Add '-read_only_relocs warning' to LDDLLFLAGS on Darwin.

---
 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 508d0280f86..26e961f8852 100755
--- a/configure
+++ b/configure
@@ -14109,7 +14109,7 @@ echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
           if test "$ac_cv_c_dll_macho" = "yes"
           then
             LIBEXT="dylib"
-            LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
+            LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
             LDSHARED="\$(CC) -dynamiclib"
             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
             STRIP="$STRIP -u -r"
diff --git a/configure.ac b/configure.ac
index c0daaff7189..d9cfbab58cc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1005,7 +1005,7 @@ case $host_os in
           if test "$ac_cv_c_dll_macho" = "yes"
           then
             LIBEXT="dylib"
-            LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
+            LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
             LDSHARED="\$(CC) -dynamiclib"
             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
             STRIP="$STRIP -u -r"
-- 
GitLab