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/5.3.0-2+rpi1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5a519dcd527df2ff9a653921e121049bb33808d7;p=ocaml.git Disable DT_TEXTREL warnings on Linux i386 Bug: https://github.com/ocaml/ocaml/issues/9800 Gbp-Pq: Name 0006-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch --- diff --git a/configure.ac b/configure.ac index 4d94dc6c..af1ea7b3 100644 --- a/configure.ac +++ b/configure.ac @@ -1608,6 +1608,16 @@ AS_CASE([$arch], # Alpine and other musl-based Linux distributions [common_cflags="-no-pie $common_cflags"])]) +# 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_IF([test -n "$target_alias"],