android: force static openmp linking

Issue #30
This commit is contained in:
Flyinghead 2020-03-17 14:16:23 +01:00
parent d5cd4e5834
commit bb345bf291
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ install:
- sudo apt-get -qq update
- touch ~/.android/repositories.cfg
- echo y | sdkmanager 'ndk-bundle'
- echo y | sdkmanager 'ndk;21.0.6113669'
- export NDK=ANDROID_NDK=ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
- export PATH=${PATH}:$ANDROID_HOME/tools
- export PATH=${PATH}:$ANDROID_HOME/platform-tools

View File

@ -75,8 +75,8 @@ ifdef CHD5_FLAC
endif
LOCAL_CFLAGS += -DGLES3
LOCAL_CPPFLAGS += -std=c++11 -fopenmp
LOCAL_LDFLAGS += -fopenmp
LOCAL_CPPFLAGS += -std=c++11 -fopenmp -static-openmp
LOCAL_LDFLAGS += -fopenmp -static-openmp
ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_CFLAGS+= -DTARGET_NO_AREC -DTARGET_NO_OPENMP