time to fake gcc

This commit is contained in:
Duy Tran Khanh 2021-06-10 05:16:40 +07:00
parent 1add4c6891
commit d1c9981d5b
4 changed files with 20 additions and 6 deletions

View File

@ -1 +1,9 @@
exec $thecc "$@" -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused
#!/bin/bash
if [ "$1" = "--version" ]; then
echo "${TARGET}-gcc (GCC) 4.9 20140827 (prerelease)"
echo "Copyright (C) 2014 Free Software Foundation, Inc."
echo "This is free software; see the source for copying conditions. There is NO"
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
else
exec $thecc "$@"
fi

View File

@ -1 +1,9 @@
exec $thecxx "$@" -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused
#!/bin/bash
if [ "$1" = "--version" ]; then
echo "${TARGET}-g++ (GCC) 4.9 20140827 (prerelease)"
echo "Copyright (C) 2014 Free Software Foundation, Inc."
echo "This is free software; see the source for copying conditions. There is NO"
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
else
exec $thecxx "$@"
fi

View File

@ -5,7 +5,6 @@ set -e
if [ "$TARGET_JDK" == "arm_DISABLEDCHECK" ]
then
export TARGET_JDK=aarch32
export TARGET_PHYS=aarch32-linux-androideabi
export JVM_VARIANTS=client
else
export TARGET_PHYS=$TARGET
@ -73,7 +72,6 @@ bash ./configure \
--disable-warnings-as-errors \
--enable-option-checking=fatal \
--with-jvm-variants=$JVM_VARIANTS \
--with-toolchain-type=clang \
--with-cups-include=$CUPS_DIR \
--with-devkit=$TOOLCHAIN \
--with-debug-level=$JDK_DEBUG_LEVEL \

View File

@ -64,8 +64,8 @@ export ANDROID_INCLUDE=$TOOLCHAIN/sysroot/usr/include
export CPPFLAGS="-I$ANDROID_INCLUDE -I$ANDROID_INCLUDE/$TARGET" # -I/usr/include -I/usr/lib
export LDFLAGS="-L$NDK/platforms/android-$API/arch-$TARGET_SHORT/usr/lib"
export thecc=$TOOLCHAIN/bin/$TARGET-clang
export thecxx=$TOOLCHAIN/bin/$TARGET-clang++
export thecc=$TOOLCHAIN/bin/$TARGET-gcc
export thecxx=$TOOLCHAIN/bin/$TARGET-g++
# Configure and build.
export AR=$TOOLCHAIN/bin/$TARGET-ar