diff options
| author | Felix Fietkau | 2024-12-28 21:46:19 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-12-28 21:50:04 +0000 |
| commit | 9a0a05d52abf1f16037baf39004ce1307042f1e0 (patch) | |
| tree | 412b633c87267c09c941b49d43af613f71002383 | |
| parent | dad450b11561c647987a718f9dad07b4d17616ae (diff) | |
| download | openwrt-9a0a05d52abf1f16037baf39004ce1307042f1e0.tar.gz | |
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)
| -rw-r--r-- | package/utils/busybox/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 4ef470df75..7d302bd159 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox/Makefile @@ -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 |