build-style/meson: enable Link-Time-Optimization by default.
This commit is contained in:
parent
3b5a355d1a
commit
ea1b905d26
|
@ -34,7 +34,7 @@ do_configure() {
|
||||||
[binaries]
|
[binaries]
|
||||||
c = '${CC}'
|
c = '${CC}'
|
||||||
cpp = '${CXX}'
|
cpp = '${CXX}'
|
||||||
ar = '${AR}'
|
ar = '${XBPS_CROSS_TRIPLET}-gcc-ar'
|
||||||
nm = '${NM}'
|
nm = '${NM}'
|
||||||
ld = '${LD}'
|
ld = '${LD}'
|
||||||
strip = '${STRIP}'
|
strip = '${STRIP}'
|
||||||
|
@ -76,7 +76,12 @@ EOF
|
||||||
unset _MESON_CPU_FAMILY _MESON_TARGET_CPU _MESON_TARGET_ENDIAN
|
unset _MESON_CPU_FAMILY _MESON_TARGET_CPU _MESON_TARGET_ENDIAN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${meson_cmd} --prefix=/usr --buildtype=plain ${configure_args} . ${meson_builddir}
|
# The binutils ar cannot perform LTO on static libraries so we have to use
|
||||||
|
# the gcc-ar wrapper that that calls the correct plugin
|
||||||
|
# https://github.com/mesonbuild/meson/issues/1646
|
||||||
|
export AR="gcc-ar"
|
||||||
|
|
||||||
|
${meson_cmd} --prefix=/usr -Db_lto=true --buildtype=plain ${configure_args} . ${meson_builddir}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user