Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | LOCAL_SRC_FILES := listxattr.c |
| 5 | LOCAL_CFLAGS := -c -W |
| 6 | LOCAL_MODULE := listxattr |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 7 | LOCAL_MODULE_TAGS := optional |
Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 8 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 9 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/ |
Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 10 | LOCAL_PACK_MODULE_RELOCATIONS := false |
| 11 | |
| 12 | ifneq ($(TARGET_ARCH), arm64) |
| 13 | ifneq ($(TARGET_ARCH), x86_64) |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 14 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/system/bin/linker |
Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 15 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 16 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/system/bin/linker64 |
Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 17 | endif |
| 18 | else |
bigbiff | ad58e1b | 2020-07-06 20:24:34 -0400 | [diff] [blame] | 19 | LOCAL_LDFLAGS += -Wl,-dynamic-linker,/system/bin/linker64 |
Ethan Yonker | 9175844 | 2017-02-03 13:24:31 -0600 | [diff] [blame] | 20 | endif |
| 21 | |
| 22 | include $(BUILD_EXECUTABLE) |