https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77821

--- Comment #4 from PeteVine <tulipawn at gmail dot com> ---
Just tried your suggestion and during the final link, /tmp is full of ltrans
objects so LTO seems to be working fine (GCC5 + -fno-fat-lto-objects) but the
stripped size ended up even larger (2.5M).

Anyway, here's what works for gcc 4.9.4 (sdl, sdl-ttf, sdl-mixer required):

$ export CFLAGS='-mcpu=cortex-a5 -Ofast -marm -fomit-frame-pointer -mfpu=neon
-ftree-vectorize -flto' CXXFLAGS='-mcpu=cortex-a5 -Ofast -marm
-fomit-frame-pointer -mfpu=neon -ftree-vectorize -flto'
git clone -b master git://git.code.sf.net/p/ufoai/code ufoai
cd ufoai && make -j4 && strip -s ufo

Starting with GCC5, even running:

LDFLAGS="$CFLAGS" ./configure ..., etc.

makes no difference, which makes me wonder if the LTO part of the GCC5
changelog could be relevant here?

Reply via email to