Hi, if any of you have any clue. Please let me know.

This has puzzled me a couple of days long.

Thanks

Sam於 2012年7月17日星期二UTC+8下午4時47分45秒寫道:
>
> I am trying to generate the executable something like adbd in /sbin.
>
> The executable I wish to have is iwlist with ARM format and the type is 
> static.
>
> I added the folder in the AndroidSourceCode/external and execute the "mm" 
> command to compile
>
> The following is the Android.mk in my folder
>
> 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)
>
> #================================================
> include $(CLEAR_VARS)
> LOCAL_FORCE_STATIC_EXECUTABLE := true
> LOCAL_MODULE_TAGS := eng
> LOCAL_SRC_FILES := iwlist.c
>
> LOCAL_SHARED_LIBRARIES := libiw
> LOCAL_MODULE := iwlist
>
> include $(BUILD_EXECUTABLE)
> #================================================
>
> endif # !TARGET_SIMULATOR
>
> The above make file actually works by generating the iwlist executable with
>  iwlist: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically 
> linked (uses
>  shared libs), stripped
>
> However, I am looking for the "statically linked" and I was thinking 
> "LOCAL_FORCE_STATIC_EXECUTABLE := true" this line should help me make this 
> executable statically. 
>
> Unfortunately, it doesnt.
>
> Kindly instruct me if you know how to do it.
>
> Thanks in advance.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to