Disable DT_TEXTREL warnings on Linux i386
authorStephane Glondu <steph@glondu.net>
Wed, 29 Jul 2020 14:22:39 +0000 (16:22 +0200)
committerStéphane Glondu <glondu@debian.org>
Thu, 30 Jul 2020 12:45:47 +0000 (14:45 +0200)
Bug: https://github.com/ocaml/ocaml/issues/9800

Gbp-Pq: Name 0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch

configure.ac

index 82172d769c19368d908c2d84ef4c0fc9f142c7df..e0dc5662431d68351dc3481b54abf46fbc7d8b0d 100644 (file)
@@ -952,6 +952,16 @@ AS_CASE(["$arch,$system"],
   [power,netbsd], [profiling=true],
   [profiling=false])
 
+# Disable DT_TEXTREL warnings on Linux i386
+# See https://github.com/ocaml/ocaml/issues/9800
+
+AS_CASE([$host],
+  [i?86-*-linux-*],
+    [common_cflags="-Wl,-z,notext $common_cflags"
+    mksharedlib="$mksharedlib -Wl,-z,notext"
+    mkmaindll="$mkmaindll -Wl,-z,notext"],
+  [])
+
 # Assembler
 
 AS_CASE([$host],