Files
termux-packages/packages/ruby/android-sdk-level.patch

18 lines
629 B
Diff
Raw Permalink Normal View History

2022-11-25 06:54:57 +09:00
--- a/configure.ac
+++ b/configure.ac
@@ -510,11 +510,13 @@
]], [[]])],
[
AC_MSG_RESULT(yes)
+ AS_CASE(["$target_os"], [*android*], [], [
2021-12-28 22:53:44 +09:00
target_os=${target_os}-android
2022-11-25 06:54:57 +09:00
+ ])
AS_IF([test "x$cross_compiling" = xno], [
AC_MSG_CHECKING([for Android API version])
2021-12-28 22:53:44 +09:00
# hacky workaround: https://github.com/termux/termux-packages/issues/6176
- rb_android_api=`getprop ro.build.version.sdk`
+ rb_android_api=24
2022-11-25 06:54:57 +09:00
AC_MSG_RESULT($rb_android_api)
RUBY_APPEND_OPTIONS(CPPFLAGS, -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined)
])