mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
Use -pie -fPIC for Android builds (required for Android L)
This commit is contained in:
parent
5ec319244b
commit
1256b77747
@ -1,5 +1,5 @@
|
||||
#CC=arm-linux-androideabi-gcc
|
||||
CC=ndk-gcc
|
||||
CC=ndk-gcc -fPIC -pie -fPIE
|
||||
#RANLIB=ndk-ranlib
|
||||
USERCC=ndk-gcc
|
||||
RANLIB=arm-linux-androideabi-ranlib
|
||||
|
@ -57,6 +57,7 @@ if [ -z "${NDK_BINS}" ]; then
|
||||
fi
|
||||
CFLAGS="--sysroot=${PLATFORM_ROOT}"
|
||||
CFLAGS="${CFLAGS} -I${PLATFORM_PATH}/include"
|
||||
CFLAGS="${CFLAGS} -pie -fPIC"
|
||||
LDFLAGS=-L${PLATFORM_PATH}/lib
|
||||
#LDFLAGS="${LDFLAGS} -nostdlib"
|
||||
#LDFLAGS="${LDFLAGS} -lc -ldl"
|
||||
|
Loading…
Reference in New Issue
Block a user