Skip to content

Commit

Permalink
build newlib with -O2
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak authored Oct 24, 2024
1 parent 55b3e73 commit 201933a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-newlib
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mkdir -p build
cd build
../configure --target=arm-none-eabi \
$NEWLIB_FLAGS \
CFLAGS_FOR_TARGET="-g -Os -ffunction-sections -fdata-sections -fshort-wchar"
CFLAGS_FOR_TARGET="-g -O2 -ffunction-sections -fdata-sections -fshort-wchar"

make -j $JOBS

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

make -j $JOBS

Expand Down

0 comments on commit 201933a

Please sign in to comment.