Skip to content

Commit

Permalink
Merge pull request #10835 from hannesm/fix-32bit-relocations
Browse files Browse the repository at this point in the history
relocation issues with clang on 32bit FreeBSD
  • Loading branch information
Octachron committed Feb 17, 2022
2 parents cec8e01 + c22c830 commit 389121d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Changes
Expand Up @@ -502,6 +502,11 @@ OCaml 4.14.0

### Build system:

- #10835 Disable DT_TEXTREL warnings on x86 32 bit architecture by passing
-Wl,-z,notext in mksharedlib and mkmaindll. Fixes relocation issues, reported
in #9800, making local patches in Debian, Alpine, and FreeBSD superfluous.
(Hannes Mehnert with Kate Deplaix and Stéphane Glondu, review by Xavier Leroy)

- #10717: Simplify the installation of man pages
(Sébastien Hinderer, review by David Allsopp)

Expand Down
4 changes: 4 additions & 0 deletions configure

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

4 changes: 4 additions & 0 deletions configure.ac
Expand Up @@ -966,6 +966,10 @@ AS_IF([test x"$enable_shared" != "xno"],
AS_CASE([$cc_basename,$host],
[*gcc*,powerpc-*-linux*],
[mksharedlib="$CC -shared -mbss-plt \$(LDFLAGS)"],
[[*,i[3456]86-*]],
# Disable DT_TEXTREL warnings on Linux and BSD i386
# See https://github.com/ocaml/ocaml/issues/9800
[mksharedlib="$CC -shared \$(LDFLAGS) -Wl,-z,notext"],
[mksharedlib="$CC -shared \$(LDFLAGS)"])
oc_ldflags="$oc_ldflags -Wl,-E"
rpath="-Wl,-rpath,"
Expand Down

0 comments on commit 389121d

Please sign in to comment.