[Buildroot] [PATCH] meson: Use AR via wrapper
Alexey Brodkin
alexey.brodkin at synopsys.com
Tue Oct 9 19:24:22 UTC 2018
If building with LTO enabled we need to use GCC wrapper for AR otherwise
archives get created improperly and we see a lot of unresolved symbols
on finla linkage.
In particular this allows to build SystemD with LTO.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Cc: Eric Le Bihan <eric.le.bihan.dev at free.fr>
Cc: Mark Corbin <mark.corbin at embecosm.com>
Cc: Peter Korsgaard <peter at korsgaard.com>
Cc: Peter Seiderer <ps.report at gmx.net>
---
package/meson/cross-compilation.conf.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/meson/cross-compilation.conf.in b/package/meson/cross-compilation.conf.in
index 0eec74087b..de4600cc58 100644
--- a/package/meson/cross-compilation.conf.in
+++ b/package/meson/cross-compilation.conf.in
@@ -6,7 +6,7 @@
[binaries]
c = '@TARGET_CROSS at gcc'
cpp = '@TARGET_CROSS at g++'
-ar = '@TARGET_CROSS at ar'
+ar = '@TARGET_CROSS at gcc-ar'
strip = '@TARGET_CROSS at strip'
pkgconfig = '@HOST_DIR@/usr/bin/pkg-config'
--
2.16.2
More information about the buildroot
mailing list