Skip to content

Commit

Permalink
Do not pass -no-pie to the C compiler on musl/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
omnivagant authored and kit-ty-kate committed Feb 17, 2022
1 parent 389121d commit ebea50b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ Working version

### Bug fixes:

- #11025: Do not pass -no-pie to the C compiler on musl/arm64
(omni and Kate Deplaix)

OCaml 4.14.0
----------------

Expand Down
6 changes: 3 additions & 3 deletions configure

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

6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1172,16 +1172,16 @@ AS_IF([test -z "$PARTIALLD"],
# Disable PIE at link time when ocamlopt does not produce position-independent
# code and the system produces PIE executables by default and demands PIC
# object files to do so.
# This issue does not affect amd64 (x86_64) and s390x (Z systems),
# since ocamlopt produces PIC object files by default.
# This issue does not affect amd64 (x86_64), aarch64 (arm64)
# and s390x (Z systems), since ocamlopt produces PIC object files by default.
# Currently the problem is known for Alpine Linux on platforms other
# than amd64 and s390x (issue #7562), and probably affects all Linux
# distributions that use the musl standard library and dynamic loader.
# Other systems have PIE by default but can cope with non-PIC object files,
# e.g. Ubuntu >= 17.10 for i386, which uses the glibc dynamic loader.

AS_CASE([$arch],
[amd64|s390x|none],
[amd64|aarch64|s390x|none],
# ocamlopt generates PIC code or doesn't generate code at all
[],
[AS_CASE([$host],
Expand Down

0 comments on commit ebea50b

Please sign in to comment.