Set some CFLAGS, to make binaries more portable and lower size.

This commit is contained in:
Rafal Kupiec 2020-08-04 14:55:39 +02:00
parent 8395dd7e9c
commit 2ba34cbee2
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -7,6 +7,10 @@ PCHDIR="$(pwd)/patches"
SRCDIR="$(pwd)/sources"
WRKDIR="$(pwd)"
# Compiler Flags
CFLAGS="-march=x86-64 -mtune=generic -O2 -s -pipe"
CXXFLAGS="${CFLAGS}"
# Binutils Settings
BINUTILSDIR="${SRCDIR}/binutils"
BINUTILSTAG="binutils-2_35"
@ -328,6 +332,10 @@ fi
mkdir -p ${BINDIR}
mkdir -p ${SRCDIR}
# Export compiler flags
export CFLAGS
export CXXFLAGS
# Download Mingw-W64
mingw_fetch