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 0008-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch
  • Loading branch information
glondu authored and Stéphane Glondu committed Jul 30, 2020
1 parent a182096 commit 2707b8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Expand Up @@ -952,6 +952,16 @@ AS_CASE(["$arch,$system"],
[power,netbsd], [profiling=true],
[profiling=false])

# 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_CASE([$host],
Expand Down

0 comments on commit 2707b8c

Please sign in to comment.