Skip to content

Commit c4ca9d1

Browse files
author
Jesus Oliver
committed
Forced 16Kb for openalsoft by adding LDFLAGS, it's ignoring APP_SUPPORT_FLEXIBLE_PAGE_SIZES
1 parent bcdc101 commit c4ca9d1

File tree

1 file changed

+6
-0
lines changed
  • jme3-android-native/src/native/jme_openalsoft

1 file changed

+6
-0
lines changed

jme3-android-native/src/native/jme_openalsoft/Android.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ LOCAL_CFLAGS := -ffast-math \
4141
-DRESTRICT=""
4242

4343
LOCAL_LDLIBS := -lOpenSLES -llog -Wl,-s -lc++_static -lc++abi
44+
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
45+
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
46+
endif
47+
ifeq ($(TARGET_ARCH_ABI),x86_64)
48+
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
49+
endif
4450
LOCAL_STATIC_LIBRARIES := openalsoft_prebuilt
4551
# (or LOCAL_WHOLE_STATIC_LIBRARIES if you need every object pulled in)
4652

0 commit comments

Comments
 (0)