systemd: disable link time optimization
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Tue, 12 Aug 2014 20:28:27 +0000 (22:28 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 15 Aug 2014 20:31:25 +0000 (22:31 +0200)
commitd9054017cfc25c8f89225e1d18c71f112d25f9a0
tree1ff70ca3cbc8ce0b284d4a4253633925aa7679ca
parentc0da68a90c934a7c54a37e2168f0b5c53353b4a6
systemd: disable link time optimization

As reported in https://bugs.busybox.net/show_bug.cgi?id=7286,
systemd fails to build with BR2_OPTIMIZE_2=y. This mode activates the GCC
options -flto and -ffat-lto-objects, which do not mix well with the GCC
tricks used in src/compat-libs/linkwarning.h to build the compatibility
libraries.

As a temporary workaround, this patch disables link time optimization for
systemd.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/systemd.mk