Skip to content

Commit

Permalink
Use bfd instead of gold linker on aarch64
Browse files Browse the repository at this point in the history
We were getting segmentation faults and illegal instructions. My
take is support for aarch64 + C++14 symbols is fresh. I didn't
find anyone else reporting similar issues so I created one on AOP.

AOP issue:
https://code.google.com/p/android/issues/detail?id=204151

Mapbox GL Native issues:
mapbox/mapbox-gl-native#1956
mapbox/mapbox-gl-native#3128
  • Loading branch information
tmpsantos committed Mar 16, 2016
1 parent b30e09e commit a910657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mason.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ elif [ ${MASON_PLATFORM} = 'android' ]; then
export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}"

export CFLAGS="-target aarch64-none-linux-android -D_LITTLE_ENDIAN ${CFLAGS}"
export LDFLAGS="-target aarch64-none-linux-android -fuse-ld=gold ${LDFLAGS}"

# Using bfd for aarch64: https://code.google.com/p/android/issues/detail?id=204151
export LDFLAGS="-target aarch64-none-linux-android -fuse-ld=bfd ${LDFLAGS}"

export JNIDIR="arm64-v8a"
MASON_ANDROID_ARCH="arm64"
Expand Down

0 comments on commit a910657

Please sign in to comment.