forked from xt-sys/xtchain
Set some CFLAGS, to make binaries more portable and lower size.
This commit is contained in:
parent
8395dd7e9c
commit
2ba34cbee2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user