mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
make.sh: Use -pipe in CFLAGS when host has >1GB of memory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -138,7 +138,13 @@ configure_build() {
|
|||||||
# Enables hardening
|
# Enables hardening
|
||||||
HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4"
|
HARDENING_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4"
|
||||||
|
|
||||||
CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
|
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
|
||||||
|
|
||||||
CXXFLAGS="${CFLAGS}"
|
CXXFLAGS="${CFLAGS}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user