mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-06 22:08:54 +00:00
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>
This commit is contained in:
parent
80189a0350
commit
e6ce868c3a
@ -111,7 +111,7 @@ endif
|
||||
MAKE_VARS :=
|
||||
MAKE_FLAGS += \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
||||
EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
EXTRA_LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_CFLAGS)" \
|
||||
LDLIBS="$(LDLIBS)" \
|
||||
LD="$(TARGET_CC)" \
|
||||
SKIP_STRIP=y
|
||||
|
Loading…
Reference in New Issue
Block a user