Browse Source

- sysvinit: fix build for hd2; remove -fstack-protector-strong

master
vanhofen 5 years ago
parent
commit
dec742e2d4
  1. 3
      make/target-tools.mk
  2. 13
      patches/sysvinit/remove-fstack-protector-strong.patch

3
make/target-tools.mk

@ -1800,6 +1800,9 @@ $(ARCHIVE)/$(SYSVINIT_SOURCE):
$(DOWNLOAD) $(SYSVINIT_URL)/$(SYSVINIT_SOURCE)
SYSVINIT_PATCH = crypt-lib.patch
ifeq ($(BOXSERIES), hd2)
SYSVINIT_PATCH += remove-fstack-protector-strong.patch
endif
define SYSVINIT_INSTALL
for sbin in halt init shutdown killall5; do \

13
patches/sysvinit/remove-fstack-protector-strong.patch

@ -0,0 +1,13 @@
diff --git a/src/Makefile b/src/Makefile
index 9ae35df..814b0bd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,7 +10,7 @@
CPPFLAGS =
CFLAGS ?= -O2
-override CFLAGS += -ansi -fomit-frame-pointer -fstack-protector-strong -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE -DVERSION=\"$(VERSION)\"
+override CFLAGS += -ansi -fomit-frame-pointer -W -Wall -Wunreachable-code -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE -DVERSION=\"$(VERSION)\"
override CFLAGS += $(shell getconf LFS_CFLAGS)
STATIC =
MANDB := s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@
Loading…
Cancel
Save