Skip to content

Commit 389121d

Browse files
authored
Merge pull request ocaml#10835 from hannesm/fix-32bit-relocations
relocation issues with clang on 32bit FreeBSD
2 parents cec8e01 + c22c830 commit 389121d

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,11 @@ OCaml 4.14.0
502502

503503
### Build system:
504504

505+
- #10835 Disable DT_TEXTREL warnings on x86 32 bit architecture by passing
506+
-Wl,-z,notext in mksharedlib and mkmaindll. Fixes relocation issues, reported
507+
in #9800, making local patches in Debian, Alpine, and FreeBSD superfluous.
508+
(Hannes Mehnert with Kate Deplaix and Stéphane Glondu, review by Xavier Leroy)
509+
505510
- #10717: Simplify the installation of man pages
506511
(Sébastien Hinderer, review by David Allsopp)
507512

configure

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,10 @@ AS_IF([test x"$enable_shared" != "xno"],
966966
AS_CASE([$cc_basename,$host],
967967
[*gcc*,powerpc-*-linux*],
968968
[mksharedlib="$CC -shared -mbss-plt \$(LDFLAGS)"],
969+
[[*,i[3456]86-*]],
970+
# Disable DT_TEXTREL warnings on Linux and BSD i386
971+
# See https://github.com/ocaml/ocaml/issues/9800
972+
[mksharedlib="$CC -shared \$(LDFLAGS) -Wl,-z,notext"],
969973
[mksharedlib="$CC -shared \$(LDFLAGS)"])
970974
oc_ldflags="$oc_ldflags -Wl,-E"
971975
rpath="-Wl,-rpath,"

0 commit comments

Comments
 (0)