Bug #17491 ยป ruby-3.0.0-android-cross.patch
configure.ac | ||
---|---|---|
[
|
||
AC_MSG_RESULT(yes)
|
||
target_os=${target_os}-android
|
||
AC_MSG_CHECKING([for Android API version])
|
||
# hacky workaround: https://github.com/termux/termux-packages/issues/6176
|
||
rb_android_api=`getprop ro.build.version.sdk`
|
||
AC_MSG_RESULT($rb_android_api)
|
||
RUBY_APPEND_OPTIONS(CPPFLAGS, -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined)
|
||
AS_IF([test "x$cross_compiling" = xno], [
|
||
AC_MSG_CHECKING([for Android API version])
|
||
# hacky workaround: https://github.com/termux/termux-packages/issues/6176
|
||
rb_android_api=`getprop ro.build.version.sdk`
|
||
AC_MSG_RESULT($rb_android_api)
|
||
RUBY_APPEND_OPTIONS(CPPFLAGS, -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined)
|
||
])
|
||
])
|
||
AC_SUBST(RM, ['rm -f'])
|