Skip to content

Commit c4905a4

Browse files
committed
r9 fix
1 parent e9f0e0d commit c4905a4

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

distribute.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,16 @@ function push_arm() {
152152
PYPLATFORM="linux"
153153
fi
154154

155-
if [ "X$ANDROIDNDKVER" == "Xr5b" ]; then
156-
export TOOLCHAIN_PREFIX=arm-eabi
157-
export TOOLCHAIN_VERSION=4.4.0
158-
else
159-
#if [ "X${ANDROIDNDKVER:0:2}" == "Xr7" ] || [ "X$ANDROIDNDKVER" == "Xr8" ]; then
160-
# assume this toolchain is the same for all the next ndk... until a new one is out.
161-
export TOOLCHAIN_PREFIX=arm-linux-androideabi
162-
export TOOLCHAIN_VERSION=4.4.3
163-
fi
155+
if [ "X$ANDROIDNDKVER" == "Xr5b" ]; then
156+
export TOOLCHAIN_PREFIX=arm-eabi
157+
export TOOLCHAIN_VERSION=4.4.0
158+
elif [ "X${ANDROIDNDKVER:0:2}" == "Xr7" ] || [ "X${ANDROIDNDKVER:0:2}" == "Xr8" ]; then
159+
export TOOLCHAIN_PREFIX=arm-linux-androideabi
160+
export TOOLCHAIN_VERSION=4.4.3
161+
elif [ "X${ANDROIDNDKVER}" == "Xr9" ]; then
162+
export TOOLCHAIN_PREFIX=arm-linux-androideabi
163+
export TOOLCHAIN_VERSION=4.8
164+
fi
164165

165166
export PATH="$ANDROIDNDK/toolchains/$TOOLCHAIN_PREFIX-$TOOLCHAIN_VERSION/prebuilt/$PYPLATFORM-x86/bin/:$ANDROIDNDK/toolchains/$TOOLCHAIN_PREFIX-$TOOLCHAIN_VERSION/prebuilt/$PYPLATFORM-x86_64/bin/:$ANDROIDNDK:$ANDROIDSDK/tools:$PATH"
166167

src/tools/liblink

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ f.close()
7373

7474
sys.exit(subprocess.call([
7575
environ.get('LD'), '-r',
76-
'-o', output + '.o', '-arch',
77-
environ.get('ARCH')] + objects))
76+
'-o', output + '.o'
77+
#, '-arch', environ.get('ARCH')
78+
] + objects))
7879

0 commit comments

Comments
 (0)