Compare commits
10 Commits
Author | SHA1 | Date |
---|---|---|
neiviv-ui | a96787876b | |
Neiviv-ui | e7e0b46eb9 | |
Neiviv-ui | 7369d51017 | |
neiviv-ui | 91aa9b4dee | |
neiviv-ui | b44c7bbfa0 | |
neiviv-ui | d9b07d254d | |
Neiviv-ui | 3482684649 | |
neiviv-ui | ce4a955306 | |
Neiviv-ui | a83135ea59 | |
neiviv-ui | 691e9dc4c1 |
22
configure.sh
22
configure.sh
|
@ -35,8 +35,12 @@ if [[ ! -z "$ACCEPT_ANY" ]]; then
|
|||
fi
|
||||
|
||||
# Check dependencies for binutils and GCC
|
||||
|
||||
if command -v apt >/dev/null 2>&1; then
|
||||
if command -v pkg >/dev/null 2>&1; then
|
||||
deps="libmpfr libmpc libgmp libpng flex clang git texinfo libisl bison xz-utils"
|
||||
pm=pkg
|
||||
pm_has="dpkg -s"
|
||||
pm_install="pkg install"
|
||||
elif command -v apt >/dev/null 2>&1; then
|
||||
deps="libmpfr-dev libmpc-dev libgmp-dev libpng-dev libppl-dev flex g++ git texinfo xz-utils"
|
||||
pm=apt
|
||||
pm_has="dpkg -s"
|
||||
|
@ -112,5 +116,19 @@ PREFIX="$(pwd)"
|
|||
cd build
|
||||
|
||||
echo "$TAG Configuring binutils..."
|
||||
|
||||
if command -v termux-setup-storage >/dev/null 2>&1; then
|
||||
# Since the __ANDROID_API__ flag is hardcoded as 24 in clang, and <stdio.h>
|
||||
# doesn't prototype some functions when this flag is too low, fixes it's
|
||||
# version by checking system's properties so as to prevent from missing prototypes
|
||||
# of existing functions such as fgets_unlocked (only if API >= 28)
|
||||
# See the following issues :
|
||||
# * https://github.com/termux/termux-packages/issues/6176
|
||||
# * https://github.com/termux/termux-packages/issues/2469
|
||||
|
||||
export CFLAGS="-D__ANDROID_API__=$(getprop ro.build.version.sdk) -g -O2" \
|
||||
CXXFLAGS="-D__ANDROID_API__=$(getprop ro.build.version.sdk) -g -O2"
|
||||
fi
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue