busybox: fix LTO compiler flags
authorFelix Fietkau <nbd@nbd.name>
Sat, 28 Dec 2024 21:46:19 +0000 (22:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 28 Dec 2024 21:48:06 +0000 (22:48 +0100)
commite6ce868c3a6f843f2c14498d0174011c8713a8bd
tree02ce2e7dfa17662dfc0725be8bdcba893f3b3bbe
parent80189a0350698cebecefefff426b1d05ec628b71
busybox: fix LTO compiler flags

When doing LTO builds, the target related CFLAGS need to be passed to the
linker, so that they are considered for target code generation.
Pass TARGET_CFLAGS in EXTRA_LDFLAGS to ensure that this is handled properly.

Fixes: #17200
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/utils/busybox/Makefile