aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-25 04:12:32 +0100
committerSven Gothel <[email protected]>2019-12-25 04:12:32 +0100
commit8907cb8550def10640f9d812853fbadf3f2989f5 (patch)
tree60a42112eebb95cba05ee021777ea7619922eee0
parentb8e20cd8238c2f3694068f501ba06b9a6f654645 (diff)
Bug 1417 - Android: OpenAL-Soft: ANDROID_API_LEVEL [21..22] only, link against c++_static!
-rwxr-xr-xmake/build.xml12
m---------openal-soft0
2 files changed, 9 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml
index a4ef3e0..75e32c2 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -213,6 +213,12 @@
</condition>
<echo message="useLinuxARMv6HFOptions ${useLinuxARMv6HFOptions}" />
<echo message="useLinuxAARCH64Options ${useLinuxAARCH64Options}" />
+
+ <!-- NDK >= r19 using API > 22: 'U __register_atfork'
+ __register_atfork; # introduced=23
+ See https://github.com/android/ndk/issues/964 -->
+ <property name="ANDROID_API_LEVEL_OPENAL_SOFT" value="22" />
+ <!-- property name="ANDROID_API_LEVEL_OPENAL_SOFT" value="${env.ANDROID_API_LEVEL}"/ -->
</target>
<!-- ================================================================== -->
@@ -489,7 +495,7 @@
<arg value="-DANDROID_NDK=${env.ANDROID_NDK}"/>
<arg value="-DANDROID_HOST_TAG=${env.ANDROID_HOST_TAG}"/>
<arg value="-DNDK_CPU_X86:BOOL=true"/>
- <arg value="-DANDROID_API_LEVEL=${env.ANDROID_API_LEVEL}"/>
+ <arg value="-DANDROID_API_LEVEL=${ANDROID_API_LEVEL_OPENAL_SOFT}"/>
<arg value="-DALSOFT_CPUEXT_SSE4_1=0"/>
<arg value="-DALSOFT_CPUEXT_NEON=0"/>
</exec>
@@ -507,7 +513,7 @@
<arg value="-DANDROID_NDK=${env.ANDROID_NDK}"/>
<arg value="-DANDROID_HOST_TAG=${env.ANDROID_HOST_TAG}"/>
<arg value="-DNDK_CPU_ARM_V7A:BOOL=true"/>
- <arg value="-DANDROID_API_LEVEL=${env.ANDROID_API_LEVEL}"/>
+ <arg value="-DANDROID_API_LEVEL=${ANDROID_API_LEVEL_OPENAL_SOFT}"/>
<arg value="-DARM32_LINKER_OPTS:STRING=-Wl,--fix-cortex-a8"/>
</exec>
<exec dir="${build}/openal-soft" executable="make" logError="true" failonerror="false" failifexecutionfails="false" />
@@ -524,7 +530,7 @@
<arg value="-DANDROID_NDK=${env.ANDROID_NDK}"/>
<arg value="-DANDROID_HOST_TAG=${env.ANDROID_HOST_TAG}"/>
<arg value="-DNDK_CPU_ARM64:BOOL=true"/>
- <arg value="-DANDROID_API_LEVEL=${env.ANDROID_API_LEVEL}"/>
+ <arg value="-DANDROID_API_LEVEL=${ANDROID_API_LEVEL_OPENAL_SOFT}"/>
<arg value="-DARM64_LINKER_OPTS:STRING="/>
</exec>
<exec dir="${build}/openal-soft" executable="make" logError="true" failonerror="false" failifexecutionfails="false" />
diff --git a/openal-soft b/openal-soft
-Subproject f344ef3aa3a42c4e81376c3d8ad6507ad2b8a20
+Subproject 44f5d564bacfd8adcbb1d59763ed8970667824a