I am trying to create an executable file something like adbd in / sbin.
The executable I want to have is an iwlist with ARM format, and the type is static.
I added the folder to AndroidSourceCode / external and ran the "mm" command to compile
LOCAL_PATH := $(call my-dir) ifneq ($(TARGET_SIMULATOR),true) include $(CLEAR_VARS) LOCAL_MODULE := libiw LOCAL_MODULE_TAGS := eng LOCAL_SRC_FILES := iwlib.c LOCAL_C_INCLUDE += LOCAL_PATH LOCAL_PRELINK_MODULE := false include $(BUILD_SHARED_LIBRARY)
The above make file really works by creating an iwlist executable with
iwlist: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
However, I am looking for “statically linked” and I thought: “LOCAL_FORCE_STATIC_EXECUTABLE: = true” this line should help me make this executable statically.
Unfortunately, this is not the case.
I ask you if you know how to do this.
Thanks in advance.
source share