Force `-fno-strict-aliasing` for Ruby
Optimization level `-O2` is insufficient for avoiding overoptimization, because it enables `-fstrict-aliasing`. Upstream: https://bugs.ruby-lang.org/issues/17540
This commit is contained in:
parent
c1984b21f4
commit
614672da7f
|
@ -37,7 +37,7 @@ termux_step_pre_configure() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not remove: fix for Clang's "overoptimization".
|
# Do not remove: fix for Clang's "overoptimization".
|
||||||
CFLAGS=${CFLAGS/-Oz/-O2}
|
CFLAGS+=" -fno-strict-aliasing"
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_make_install() {
|
termux_step_make_install() {
|
||||||
|
|
Loading…
Reference in New Issue