Add LTO addin
This commit is contained in:
parent
009c516860
commit
fe0e366d93
1 changed files with 7 additions and 0 deletions
7
addins/lto.sh
Normal file
7
addins/lto.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
FF_CONFIGURE="$FF_CONFIGURE --enable-lto"
|
||||||
|
|
||||||
|
ffbuild_dockeraddin() {
|
||||||
|
to_df 'ENV CFLAGS="$CFLAGS -flto=auto" CXXFLAGS="$CXXFLAGS -flto=auto" LDFLAGS="$LDFLAGS -flto=auto"'
|
||||||
|
to_df 'ENV FFBUILD_TARGET_FLAGS="$FFBUILD_TARGET_FLAGS --ar=${FFBUILD_TOOLCHAIN}-gcc-ar --nm=${FFBUILD_TOOLCHAIN}-gcc-nm --ranlib=${FFBUILD_TOOLCHAIN}-gcc-ranlib"'
|
||||||
|
}
|
Loading…
Reference in a new issue