Skip to content

Commit

Permalink
Disable DT_TEXTREL warnings on Linux i386
Browse files Browse the repository at this point in the history
Bug: ocaml/ocaml#9800

Gbp-Pq: Name 0004-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch
  • Loading branch information
glondu authored and Stéphane Glondu committed Aug 25, 2023
1 parent 7402cdb commit 63d498e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Expand Up @@ -1183,6 +1183,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 "$target_alias"],
Expand Down

0 comments on commit 63d498e

Please sign in to comment.