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 0006-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch
  • Loading branch information
glondu authored and Stéphane Glondu committed Oct 30, 2020
1 parent 70f300b commit 46099f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Expand Up @@ -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=""])
Expand Down

0 comments on commit 46099f6

Please sign in to comment.