Disable DT_TEXTREL warnings on i386
authorStephane Glondu <steph@glondu.net>
Thu, 30 Jul 2020 09:24:08 +0000 (11:24 +0200)
committerStéphane Glondu <glondu@debian.org>
Thu, 30 Jul 2020 12:44:19 +0000 (14:44 +0200)
debian/patches/0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch b/debian/patches/0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch
new file mode 100644 (file)
index 0000000..856e72f
--- /dev/null
@@ -0,0 +1,30 @@
+From: Stephane Glondu <steph@glondu.net>
+Date: Wed, 29 Jul 2020 16:22:39 +0200
+Subject: Disable DT_TEXTREL warnings on Linux i386
+
+Bug: https://github.com/ocaml/ocaml/issues/9800
+---
+ configure.ac | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 82172d7..0f22211 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -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],
index 7bd239edd8a5a7347c2ad8208c892f9f4051ab41..c66a94db21ff78a288b550592612d22f8ec8ad7b 100644 (file)
@@ -5,3 +5,4 @@
 0008-Reimplement-custom-without-hacks.patch
 0006-read_main_debug_info-do-not-die-in-custom-executable.patch
 0007-Avoid-duplicate-definitions-of-common-global-variabl.patch
+0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch