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:50:04 +0000 (22:50 +0100)
commit9a0a05d52abf1f16037baf39004ce1307042f1e0
tree412b633c87267c09c941b49d43af613f71002383
parentdad450b11561c647987a718f9dad07b4d17616ae
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>
(cherry picked from commit e6ce868c3a6f843f2c14498d0174011c8713a8bd)
package/utils/busybox/Makefile