mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-25 13:49:26 +00:00
9a0a05d52a
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)