diff --git a/configure.ac b/configure.ac index 069fe960..ab1e1888 100644 --- a/configure.ac +++ b/configure.ac @@ -1018,6 +1018,16 @@ AS_CASE([$arch], [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 "$host_alias"], [toolpref="${host_alias}-"], [toolpref=""])