diff --git a/configure b/configure
index 508d0280f8690c7bc1c8fee59ef949a13c735735..26e961f8852de63af475d96e2d3ed77f230d2ffc 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 c0daaff71891956333b9bc0c7c6c4113470070c2..d9cfbab58cc8c633d6f714ebfb6e940db3d368bb 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"