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"
|
SRCDIR="$(pwd)/sources"
|
||||||
WRKDIR="$(pwd)"
|
WRKDIR="$(pwd)"
|
||||||
|
|
||||||
|
# Compiler Flags
|
||||||
|
CFLAGS="-march=x86-64 -mtune=generic -O2 -s -pipe"
|
||||||
|
CXXFLAGS="${CFLAGS}"
|
||||||
|
|
||||||
# Binutils Settings
|
# Binutils Settings
|
||||||
BINUTILSDIR="${SRCDIR}/binutils"
|
BINUTILSDIR="${SRCDIR}/binutils"
|
||||||
BINUTILSTAG="binutils-2_35"
|
BINUTILSTAG="binutils-2_35"
|
||||||
@ -328,6 +332,10 @@ fi
|
|||||||
mkdir -p ${BINDIR}
|
mkdir -p ${BINDIR}
|
||||||
mkdir -p ${SRCDIR}
|
mkdir -p ${SRCDIR}
|
||||||
|
|
||||||
|
# Export compiler flags
|
||||||
|
export CFLAGS
|
||||||
|
export CXXFLAGS
|
||||||
|
|
||||||
# Download Mingw-W64
|
# Download Mingw-W64
|
||||||
mingw_fetch
|
mingw_fetch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user