mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
add support for GCC's LTO
This commit is contained in:
parent
0bfad420ef
commit
5366bdb4fb
7 changed files with 101 additions and 91 deletions
11
gitcompile
11
gitcompile
|
|
@ -5,6 +5,7 @@ set -e
|
|||
bit32=
|
||||
modules=
|
||||
alisp=
|
||||
lto=
|
||||
if [ $# -ne 0 ]; then
|
||||
endloop=
|
||||
while [ -z "$endloop" ]; do
|
||||
|
|
@ -25,6 +26,10 @@ if [ $# -ne 0 ]; then
|
|||
python2=yes
|
||||
echo "Forced python2 interpreter build..."
|
||||
shift ;;
|
||||
lto)
|
||||
lto="-flto -flto-partition=none"
|
||||
echo "Forced lto build..."
|
||||
shift ;;
|
||||
*)
|
||||
endloop=yes
|
||||
;;
|
||||
|
|
@ -75,7 +80,11 @@ autoheader
|
|||
automake --foreign --copy --add-missing
|
||||
touch depcomp # seems to be missing for old automake
|
||||
autoconf
|
||||
export CFLAGS='-O2 -Wall -W -Wunused-const-variable=0 -pipe -g'
|
||||
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g $lto"
|
||||
if [ -n "$lto" ]; then
|
||||
export AR="gcc-ar"
|
||||
export RANLIB="gcc-ranlib"
|
||||
fi
|
||||
echo "CFLAGS=$CFLAGS"
|
||||
echo "./configure $args"
|
||||
./configure $args || exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue