From: Stephane Glondu Date: Wed, 29 Jul 2020 14:22:39 +0000 (+0200) Subject: Disable DT_TEXTREL warnings on Linux i386 X-Git-Tag: archive/raspbian/4.08.1-10+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2707b8cda390d6040bd08dcaab3fa89dca6da98e;p=ocaml.git Disable DT_TEXTREL warnings on Linux i386 Bug: https://github.com/ocaml/ocaml/issues/9800 Gbp-Pq: Name 0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch --- diff --git a/configure.ac b/configure.ac index 82172d76..e0dc5662 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],