Skip to content

Commit

Permalink
Support 16 KB page sizes in Android libs built via android-environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 11, 2025
1 parent 66cd937 commit a6e6afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment/android/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=android-environment
pkgver=6
pkgver=7
pkgrel=1
pkgdesc='Script providing common environment variables and functions for Android builds.'
arch=('any')
Expand Down
2 changes: 1 addition & 1 deletion environment/android/android-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export PKG_CONFIG_LIBDIR="${ANDROID_PREFIX_LIB}/pkgconfig:${ANDROID_PREFIX_SHARE
export ANDROID_CFLAGS="${ANDROID_CFLAGS} -O2 -pipe -fno-plt -fexceptions -I${ANDROID_PREFIX_INCLUDE}"
export ANDROID_CPPFLAGS="${ANDROID_CPPFLAGS} -D_FORTIFY_SOURCE=2 -D__USE_FORTIFY_LEVEL=2 -I${ANDROID_PREFIX_INCLUDE}"
export ANDROID_CXXFLAGS="${ANDROID_CXXFLAGS} -O2 -pipe -fno-plt -fexceptions -I${ANDROID_PREFIX_INCLUDE}"
export ANDROID_LDFLAGS="${ANDROID_LDFLAGS} -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L${ANDROID_PREFIX_LIB}"
export ANDROID_LDFLAGS="${ANDROID_LDFLAGS} -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now,-z,max-page-size=16384 -L${ANDROID_PREFIX_LIB}"

if [ -z "${ANDROID_WHITHOUT_CENV}" ]; then
export CC="${ANDROID_CC}"
Expand Down

0 comments on commit a6e6afd

Please sign in to comment.