projects
/
ocaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b00c77
)
Disable DT_TEXTREL warnings on Linux i386
author
Stephane Glondu
<steph@glondu.net>
Wed, 29 Jul 2020 14:22:39 +0000
(16:22 +0200)
committer
Stéphane Glondu
<glondu@debian.org>
Wed, 7 Aug 2024 12:12:25 +0000
(14:12 +0200)
Bug: https://github.com/ocaml/ocaml/issues/9800
Gbp-Pq: Name 0004-Disable-DT_TEXTREL-warnings-on-Linux-i386.patch
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index c62f23d709d923086dfec275255a1e1ecb886889..d5d432a8f074bf270847cd1af98636a7ad7c5daa 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1502,6
+1502,16
@@
AS_CASE([$arch],
# Alpine and other musl-based Linux distributions
[common_cflags="-no-pie $common_cflags"])])
+# 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_IF([test -n "$target_alias"],