Skip to content

Commit 7b3972e

Browse files
committed
fix 16kb alignment
1 parent f1dbf20 commit 7b3972e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/native/jme_bufferallocator/Android.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ LOCAL_PATH := $(call my-dir)
4040
include $(CLEAR_VARS)
4141

4242
LOCAL_LDLIBS := -llog -Wl,-s
43+
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
44+
LOCAL_LDFLAGS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
45+
endif
46+
ifeq ($(TARGET_ARCH_ABI),x86_64)
47+
LOCAL_LDFLAGS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
48+
endif
4349

4450
LOCAL_MODULE := bufferallocatorjme
4551

src/native/jme_openalsoft/Android.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ LOCAL_CFLAGS := -ffast-math \
4242

4343
LOCAL_LDLIBS := -lOpenSLES -llog -Wl,-s -lc++_static -lc++abi
4444
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
45-
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
45+
LOCAL_LDFLAGS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
4646
endif
4747
ifeq ($(TARGET_ARCH_ABI),x86_64)
48-
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
48+
LOCAL_LDFLAGS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
4949
endif
5050
LOCAL_STATIC_LIBRARIES := openalsoft_static
5151
# (or LOCAL_WHOLE_STATIC_LIBRARIES if you need every object pulled in)

0 commit comments

Comments
 (0)