mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-binutils.git
synced 2025-06-06 19:35:03 +02:00
Added -g and -O2 flags
This commit is contained in:
parent
3482684649
commit
d9b07d254d
1 changed files with 12 additions and 9 deletions
21
configure.sh
21
configure.sh
|
@ -123,13 +123,16 @@ cd build
|
||||||
# * https://github.com/termux/termux-packages/issues/6176
|
# * https://github.com/termux/termux-packages/issues/6176
|
||||||
# * https://github.com/termux/termux-packages/issues/2469
|
# * https://github.com/termux/termux-packages/issues/2469
|
||||||
|
|
||||||
if command -v termux-setup-storage >/dev/null 2>&1; then
|
|
||||||
extra_args="CFLAGS=-D__ANDROID_API__=$(getprop ro.build.version.sdk) CXXFLAGS=-D__ANDROID_API__=$(getprop ro.build.version.sdk)"
|
|
||||||
else
|
|
||||||
extra_args=
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "$TAG Configuring binutils..."
|
echo "$TAG Configuring binutils..."
|
||||||
run_quietly giteapc-configure.log \
|
|
||||||
../binutils-$VERSION/configure --prefix="$PREFIX" --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --program-prefix=sh-elf- --enable-libssp --enable-lto $extra_args
|
if command -v termux-setup-storage >/dev/null 2>&1; then
|
||||||
|
|
||||||
|
run_quietly giteapc-configure.log \
|
||||||
|
../binutils-$VERSION/configure --prefix="$PREFIX" --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --program-prefix=sh-elf- --enable-libssp --enable-lto CFLAGS="-D__ANDROID_API__=$(getprop ro.build.version.sdk) -g -O2" CXXFLAGS="-D__ANDROID_API__=$(getprop ro.build.version.sdk) -g -O2"
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
run_quietly giteapc-configure.log \
|
||||||
|
../binutils-$VERSION/configure --prefix="$PREFIX" --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --program-prefix=sh-elf- --enable-libssp --enable-lto
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue