Revert "make.sh: Use -pipe in CFLAGS when host has >1GB of memory"

This reverts commit 7e1639a481.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-11-13 21:49:15 +00:00
parent 9bb4055367
commit 32e6d3e320

View File

@@ -142,13 +142,7 @@ configure_build() {
# Enables hardening
HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4"
CFLAGS="-O2 -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
# Run compiler and assembler simultaneously on systems that have enough memory
if [ ${HOST_MEM} -ge 1024 ]; then
CFLAGS="${CFLAGS} -pipe"
fi
CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
CXXFLAGS="${CFLAGS}"
# Determine parallelism