Skip to content

Commit

Permalink
configure: pass -Wl,-z,notext to the linker on 32bit Linux and BSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm and glondu committed Dec 25, 2021
1 parent 35af4cd commit d31e2a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions configure.ac
Expand Up @@ -1196,6 +1196,15 @@ AS_CASE([$arch],
[common_cflags="-no-pie $common_cflags"],
[])])

# Disable DT_TEXTREL warnings on Linux and BSD i386
# See https://github.com/ocaml/ocaml/issues/9800

AS_CASE(["$system"],
[linux_elf|bsd_elf],
[mksharedlib="$mksharedlib -Wl,-z,notext"
mkmaindll="$mkmaindll -Wl,-z,notext"],
[])

# Assembler

AS_IF([test -n "$target_alias"],
Expand Down

0 comments on commit d31e2a8

Please sign in to comment.