[openwrt/openwrt] busybox: remove i386-specific build flags
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 12 04:49:58 PDT 2018
neoraider pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/b8d9a064f08614ac6f6b0ec26eab1450cf8b7544
commit b8d9a064f08614ac6f6b0ec26eab1450cf8b7544
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Fri Mar 9 12:19:37 2018 +0100
busybox: remove i386-specific build flags
busybox tries to be smart and passes a number of additional flags to the
compiler. Unfortunately, the i386-specific flags break ABI compatiblity
with libc.
Fixes busybox crashes observed on x86-generic with GCC 7.
Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
package/utils/busybox/patches/111-i386_no_arch_flags.patch | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/package/utils/busybox/patches/111-i386_no_arch_flags.patch b/package/utils/busybox/patches/111-i386_no_arch_flags.patch
new file mode 100644
index 0000000..4560136
--- /dev/null
+++ b/package/utils/busybox/patches/111-i386_no_arch_flags.patch
@@ -0,0 +1,10 @@
+--- a/arch/i386/Makefile
++++ /dev/null
+@@ -1,7 +0,0 @@
+-# ==========================================================================
+-# Build system
+-# ==========================================================================
+-
+-# -mpreferred-stack-boundary=2 is essential in preventing gcc 4.2.x
+-# from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE).
+-CFLAGS += $(call cc-option,-march=i386 -mpreferred-stack-boundary=2,)
More information about the lede-commits
mailing list