1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 00:07:06 +00:00
termux-packages/packages/termux-elf-cleaner/android-api-level.diff
Henrik Grimler 803ae15df9
fix(main/termux-elf-cleaner): set default api-level to $TERMUX_PKG_API_LEVEL
So that users do not have to specify --api-level 24 or similar when
using the tool on-device.

Reported in termux/termux-packages#11612.
2022-08-29 11:22:37 +02:00

12 lines
364 B
Diff

--- ./elf-cleaner.cpp~ 2022-07-30 16:02:31.000000000 +0200
+++ ./elf-cleaner.cpp 2022-08-29 11:14:38.502827607 +0200
@@ -50,7 +50,7 @@
/* Default to api level 21 unless arg --api-level given */
uint8_t supported_dt_flags_1 = (DF_1_NOW | DF_1_GLOBAL);
-int api_level = 21;
+int api_level = @TERMUX_PKG_API_LEVEL@;
bool dry_run = false;
bool quiet = false;