mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
compile llvm with lto and add fPIC
This commit is contained in:
parent
8dd13c1659
commit
6989fdcd2f
@ -105,14 +105,8 @@ pre_configure_host() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
# llvm fails to build with LTO support
|
export CFLAGS="$CFLAGS -fPIC"
|
||||||
strip_lto
|
export CXXFLAGS="$CXXFLAGS -fPIC"
|
||||||
|
|
||||||
# llvm 3.3+ fails to build with -Os
|
|
||||||
# see https://bugs.gentoo.org/show_bug.cgi?id=489708
|
|
||||||
# please test without this on llvm upgrade
|
|
||||||
export CFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O2|"`
|
|
||||||
export CXXFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O2|"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
makeinstall_host() {
|
makeinstall_host() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user