Skip to content

Commit 201933a

Browse files
authored
build newlib with -O2
1 parent 55b3e73 commit 201933a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-newlib

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mkdir -p build
3232
cd build
3333
../configure --target=arm-none-eabi \
3434
$NEWLIB_FLAGS \
35-
CFLAGS_FOR_TARGET="-g -Os -ffunction-sections -fdata-sections -fshort-wchar"
35+
CFLAGS_FOR_TARGET="-g -O2 -ffunction-sections -fdata-sections -fshort-wchar"
3636

3737
make -j $JOBS
3838

@@ -48,7 +48,7 @@ mkdir -p build-pic
4848
cd build-pic
4949
../configure --target=arm-none-eabi \
5050
$NEWLIB_FLAGS \
51-
CFLAGS_FOR_TARGET="-g -Os -ffunction-sections -fdata-sections -fshort-wchar -fPIC -mno-pic-data-is-text-relative -mno-single-pic-base"
51+
CFLAGS_FOR_TARGET="-g -O2 -ffunction-sections -fdata-sections -fshort-wchar -fPIC -mno-pic-data-is-text-relative -mno-single-pic-base"
5252

5353
make -j $JOBS
5454

0 commit comments

Comments
 (0)