Skip to content

Commit

Permalink
Add LTO addin
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Nov 2, 2022
1 parent 009c516 commit fe0e366
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addins/lto.sh
Original file line number Diff line number Diff line change
@@ -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"'
}

0 comments on commit fe0e366

Please sign in to comment.