Skip to content
Snippets Groups Projects
Commit 6a3be09b authored by Nicolas Thill's avatar Nicolas Thill
Browse files

fix grub segfaults on hosts where gcc is built with stack smashing protection

SVN-Revision: 5969
parent 6f212680
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ ifeq ($(HOST_ARCH),x86_64)
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
--disable-auto-linux-mem-opt \
)
endef
else
......@@ -62,12 +63,20 @@ else
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
--disable-auto-linux-mem-opt \
)
endef
endif
#
# ./configure detects whether the host compiler supports
# -fno-stack-protector but only sets STAGE2_CFLAGS accordingly
#
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
$(MAKE) -C $(PKG_BUILD_DIR) \
GRUB_CFLAGS="\$$$$(STAGE2_CFLAGS)" \
STAGE1_CFLAGS="\$$$$(STAGE2_CFLAGS)"
endef
define Build/InstallDev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment