mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 02:20:14 +02:00
fix grub segfaults on hosts where gcc is built with stack smashing protection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5969 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a87d2cc152
commit
76a8dfe8fc
@ -43,6 +43,7 @@ ifeq ($(HOST_ARCH),x86_64)
|
|||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
$(DISABLE_NLS) \
|
$(DISABLE_NLS) \
|
||||||
|
--disable-auto-linux-mem-opt \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
@ -62,12 +63,20 @@ else
|
|||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info \
|
--infodir=/usr/info \
|
||||||
|
$(DISABLE_NLS) \
|
||||||
|
--disable-auto-linux-mem-opt \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# ./configure detects whether the host compiler supports
|
||||||
|
# -fno-stack-protector but only sets STAGE2_CFLAGS accordingly
|
||||||
|
#
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
GRUB_CFLAGS="\$$$$(STAGE2_CFLAGS)" \
|
||||||
|
STAGE1_CFLAGS="\$$$$(STAGE2_CFLAGS)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
Loading…
Reference in New Issue
Block a user