[PATCH] configure: Silence a linker warning about no-PIC .text relocations.

Rémi Bernon rbernon at codeweavers.com
Fri Feb 5 04:19:48 CST 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 configure.ac | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 3a0bc6e713a..27ff4b78630 100644
--- a/configure.ac
+++ b/configure.ac
@@ -911,7 +911,11 @@ case $host_os in
     case $host_cpu in
       *i[[3456789]]86*)
         DLLFLAGS="$DLLFLAGS -fno-PIC"
-        LDDLLFLAGS="-fno-PIC" ;;
+        LDDLLFLAGS="-fno-PIC"
+        WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],
+                        [DLLFLAGS="$DLLFLAGS -Wl,-z,notext"
+                         LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
+        ;;
       *)
         DLLFLAGS="$DLLFLAGS -fPIC"
         LDDLLFLAGS="-fPIC" ;;
-- 
2.30.0




More information about the wine-devel mailing list