拿 mdnsreponder 來測試:
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g++ prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-strip用 gcc compile, 用 g++ link, 用 strip ...
deatails: Compile:
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-gcc -I external/mdnsresponder/mDNSPosix -I external/mdnsresponder/mDNSCore -I external/mdnsresponder/mDNSShared -I external/mdnsresponder -I out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem frameworks/base/opengl/include -isystem external/skia/include -isystem out/target/product/sugar-bpi/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=1 -fno-short-enums -march=armv7-a -mfloat-abi=softfp -mfpu=neon -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -I build/core/combo/include/arch/linux-arm/ -Wno-unused-but-set-variable -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -O2 -g -W -Wall -D__ANDROID__ -D_GNU_SOURCE -DHAVE_IPV6 -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DTARGET_OS_LINUX -fno-strict-aliasing -DHAVE_LINUX -DMDNS_DEBUGMSGS=0 -DMDNS_UDS_SERVERPATH=\"/dev/socket/mdnsd\" -DMDNS_USERNAME=\"mdnsr\" -DPLATFORM_NO_RLIMIT -MD -MF out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSPosix/PosixDaemon.d -o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSPosix/PosixDaemon.o external/mdnsresponder/mDNSPosix/PosixDaemon.c
Link:
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g++ -nostdlib -Bdynamic -fPIE -pie -Wl,-dynamic-linker,/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/LINKED/mdnsd -Lout/target/product/sugar-bpi/obj/lib -Wl,-rpath-link=out/target/product/sugar-bpi/obj/lib -lc -lcutils out/target/product/sugar-bpi/obj/lib/crtbegin_dynamic.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSPosix/PosixDaemon.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSPosix/mDNSPosix.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSPosix/mDNSUNP.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSCore/mDNS.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSCore/DNSDigest.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSCore/uDNS.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSCore/DNSCommon.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSShared/uds_daemon.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSShared/mDNSDebug.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSShared/dnssd_ipc.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSShared/GenLinkedList.o out/target/product/sugar-bpi/obj/EXECUTABLES/mdnsd_intermediates/mDNSShared/PlatformCommon.o -Wl,--whole-archive -Wl,--no-whole-archive out/target/product/sugar-bpi/obj/STATIC_LIBRARIES/libcompiler-rt-extras_intermediates/libcompiler-rt-extras.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--warn-shared-textrel -Wl,--icf=safe -Wl,--fix-cortex-a8 -Wl,--no-undefined /home/charles-chang/hd/BPiA4.2.2/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/armv7-a/libgcc.a out/target/product/sugar-bpi/obj/lib/crtend_android.o
另一個說明在 系統上放多個 share library 的方法。
沒有留言:
張貼留言