mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Mesa:
- disable LTO optimization - fix host build tools
This commit is contained in:
parent
6c4f1b574f
commit
9a0ed6e056
@ -13,6 +13,11 @@ $SCRIPTS/build libXxf86vm
|
||||
$SCRIPTS/build libxcb
|
||||
$SCRIPTS/build libX11
|
||||
|
||||
# programs depends on Mesa (glew) fails to compile with GCC 4.5.0's link time optimization.
|
||||
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
||||
|
||||
get_graphicdrivers
|
||||
|
||||
cd $PKG_BUILD
|
||||
@ -47,7 +52,7 @@ DRI_DRIVER_SEARCH_DIR="$XORG_PATH_DRI" \
|
||||
--without-demos \
|
||||
--disable-gallium \
|
||||
|
||||
make -C src/glsl CC=$HOST_CC CFLAGS=""
|
||||
make -C src/glsl CC=$HOST_CC CFLAGS="$HOST_CFLAGS" LDFLAGS="$HOST_LDFLAGS"
|
||||
mv src/glsl/apps/compile ./host_compile
|
||||
|
||||
make clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user