From 20c260937deb7300ed70e4daf78ca2a75ecb81e5 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Wed, 29 Jul 2020 16:22:39 +0200 Subject: [PATCH] Disable DT_TEXTREL warnings on Linux i386 Bug: https://github.com/ocaml/ocaml/issues/9800 Gbp-Pq: Name 0004-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index c62f23d7..d5d432a8 100644 --- a/configure.ac +++ b/configure.ac @@ -1502,6 +1502,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"], -- 2.30.2