File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 9191mkdir -p $_TMP_DIR /newer-toolchain
9292cp -R $_TMP_DIR /standalone-toolchain/sysroot $_TMP_DIR /newer-toolchain/
9393
94+ # Set CPPFLAGS/CFLAGS/CXXFLAGS
95+ export CPPFLAGS=" -O3 -g0"
96+ export CFLAGS=" $CPPFLAGS "
97+ export CXXFLAGS=" $CPPFLAGS "
98+
9499# Build binutils
95100mkdir -p binutils-build
96101pushd binutils-build
@@ -109,9 +114,9 @@ export PATH="$_TMP_DIR/newer-toolchain/bin:$PATH"
109114mkdir -p newer-toolchain-build
110115pushd newer-toolchain-build
111116
112- export CFLAGS= " -D__ANDROID_API__=$_API_LEVEL "
113- export CPPFLAGS= " -D__ANDROID_API__=$_API_LEVEL "
114- export CXXFLAGS= " -D__ANDROID_API__=$_API_LEVEL "
117+ export CFLAGS+= " -D__ANDROID_API__=$_API_LEVEL "
118+ export CPPFLAGS+= " -D__ANDROID_API__=$_API_LEVEL "
119+ export CXXFLAGS+= " -D__ANDROID_API__=$_API_LEVEL "
115120
116121$GCC_SRC_DIR /configure \
117122 --host=x86_64-linux-gnu \
You can’t perform that action at this time.
0 commit comments