mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
toolchain: Build without hardening
The toolchain will be built without hardening which makes the entire bootstrapping process way more complicated than necessary and sometimes fail on some host distribution. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -46,7 +46,6 @@ else
|
||||
ifeq "$(PASS)" "1"
|
||||
CFLAGS := $(patsubst -march=%,,$(CFLAGS))
|
||||
CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
|
||||
CFLAGS := $(patsubst -fstack-protector-strong,-fstack-protector-all,$(CFLAGS))
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
|
||||
EXTRA_CONFIG = \
|
||||
--target=$(CROSSTARGET) \
|
||||
|
||||
@@ -35,7 +35,6 @@ TARGET = $(DIR_INFO)/$(THISAPP)-pass$(PASS)
|
||||
ifeq "$(PASS)" "1"
|
||||
CFLAGS := $(patsubst -march=%,,$(CFLAGS))
|
||||
CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
|
||||
CFLAGS := $(patsubst -fstack-protector-strong,-fstack-protector-all,$(CFLAGS))
|
||||
endif
|
||||
|
||||
# Set max cache size to 5GB
|
||||
|
||||
7
lfs/gcc
7
lfs/gcc
@@ -59,10 +59,6 @@ ifeq "$(ROOT)" ""
|
||||
EXTRA_INSTALL =
|
||||
else
|
||||
ifeq "$(PASS)" "1"
|
||||
CFLAGS := $(patsubst -fstack-protector-strong,-fstack-protector-all,$(CFLAGS))
|
||||
CXXFLAGS := $(patsubst -fstack-protector-strong,-fstack-protector-all,$(CXXFLAGS))
|
||||
CXXFLAGS += -std=gnu++98
|
||||
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
|
||||
EXTRA_CONFIG = \
|
||||
--target=$(CROSSTARGET) \
|
||||
@@ -135,9 +131,6 @@ else
|
||||
EXTRA_INSTALL =
|
||||
endif
|
||||
endif
|
||||
|
||||
# Disable stack protection in toolchain.
|
||||
CFLAGS += -fno-stack-protector
|
||||
endif
|
||||
|
||||
ifeq "$(MACHINE)" "armv5tel"
|
||||
|
||||
Reference in New Issue
Block a user