mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 00:36:16 +00:00
Android build: always use -fPIC
make sure that all lib code is compiled with -fPIC as things will not link due to error "requires unsupported dynamic reloc R_ARM_REL32" (for arm build). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
e77566e262
commit
2bed16203f
1 changed files with 4 additions and 3 deletions
|
@ -153,9 +153,10 @@ export CC=${BUILDROOT}/ndk-$ARCH/bin/clang
|
||||||
export CXX=${BUILDROOT}/ndk-$ARCH/bin/clang++
|
export CXX=${BUILDROOT}/ndk-$ARCH/bin/clang++
|
||||||
# autoconf seems to get lost without this
|
# autoconf seems to get lost without this
|
||||||
export SYSROOT=${BUILDROOT}/ndk-$ARCH/sysroot
|
export SYSROOT=${BUILDROOT}/ndk-$ARCH/sysroot
|
||||||
export CFLAGS=--sysroot=${SYSROOT}
|
export CFLAGS="--sysroot=${SYSROOT} -fPIC"
|
||||||
export CPPFLAGS=--sysroot=${SYSROOT}
|
export CPPFLAGS="--sysroot=${SYSROOT} -fPIC"
|
||||||
export CXXFLAGS=--sysroot=${SYSROOT}
|
export CXXFLAGS="--sysroot=${SYSROOT} -fPIC"
|
||||||
|
|
||||||
if [ "$PLATFORM" = "Darwin" ] ; then
|
if [ "$PLATFORM" = "Darwin" ] ; then
|
||||||
JAVA_HOME=$(/usr/libexec/java_home)
|
JAVA_HOME=$(/usr/libexec/java_home)
|
||||||
export JAVA_HOME
|
export JAVA_HOME
|
||||||
|
|
Loading…
Add table
Reference in a new issue