forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·36 lines (31 loc) · 1.27 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/system/bin/sh
# (Used to build with libllvm/clang in pwn-term)
set -e
cd ../out
# Configure exports
export CFLAGS_FOR_TARGET="-specs=/sdcard/specs -I/data/data/hilled.pwnterm/files/usr/include/isl -specs=/sdcard/specs -Os -fbracket-depth=512"
export CPPFLAGS_FOR_TARGET="-Os -I/data/data/hilled.pwnterm/files/usr/include -I/data/data/hilled.pwnterm/files/usr/include/isl"
export CXXFLAGS_FOR_TARGET="-Os -fbracket-depth=512"
export LDFLAGS_FOR_TARGET=" -specs=/sdcard/specs -L/data/data/hilled.pwnterm/files/usr/lib -Wl,-rpath-link,/data/data/hilled.pwnterm/files/usr/lib -Wl,-rpath-link,/data/data/hilled.pwnterm/files/usr/lib"
export PKG_CONFIG_FOR_TARGET="pkg-config"
export ORIGINAL_AS_FOR_TARGET="/data/data/hilled.pwnterm/files/usr/bin/as"
export CC="gcc"
export LD_FOR_BUILD="ld"
export AR_FOR_TARGET="ar"
export RANLIB_FOR_TARGET="ranlib"
export CC_FOR_TARGET="gcc"
export AS_FOR_TARGET="as"
export CXX_FOR_TAGET="g++"
export CPP_FOR_TARGET="cpp"
LD=${LD_FOR_TARGET}
AR=${AR_FOR_TARGET}
RANLIB=${RANLIB_FOR_TARGET}
CC=${CC_FOR_TARGET}
AS=${AS_FOR_TARGET}
CXX=${CXX_FOR_TARGET}
CFLAGS=${CFLAGS_FOR_TARGET}
DFLAGS=${LDFLAGS_FOR_TARGET}
CPPFLAGS=${CPPFLAGS_FOR_TARGET}
CPP=${CPP_FOR_TARGET}
# Make gcc
make all-gcc CFLAGS="-w -fbracket-depth=512 " CXXFLAGS="-w -fbracket-depth=512"