cross compile on mac
Created by: NHZlX
usr/local/Cellar/cmake/3.8.1/bin/cmake -E cmake_link_script CMakeFiles/zlib.dir/link.txt --verbose=1
/Users/xingzhaolong/third_party/my_android_toolchain/bin/clang -march=armv7-a -marm -mfpu=neon -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -O3 -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 1.0.0 -current_version 1.2.8 -o libz.1.2.8.dylib -install_name @rpath/libz.1.dylib CMakeFiles/zlib.dir/adler32.o CMakeFiles/zlib.dir/compress.o CMakeFiles/zlib.dir/crc32.o CMakeFiles/zlib.dir/deflate.o CMakeFiles/zlib.dir/gzclose.o CMakeFiles/zlib.dir/gzlib.o CMakeFiles/zlib.dir/gzread.o CMakeFiles/zlib.dir/gzwrite.o CMakeFiles/zlib.dir/inflate.o CMakeFiles/zlib.dir/infback.o CMakeFiles/zlib.dir/inftrees.o CMakeFiles/zlib.dir/inffast.o CMakeFiles/zlib.dir/trees.o CMakeFiles/zlib.dir/uncompr.o CMakeFiles/zlib.dir/zutil.o
clang38: warning: argument unused during compilation: '-dynamiclib'
clang38: warning: argument unused during compilation: '-compatibility_version 1.0.0'
clang38: warning: argument unused during compilation: '-current_version 1.2.8'
clang38: warning: argument unused during compilation: '-install_name @rpath/libz.1.dylib'
/Users/xingzhaolong/third_party/my_android_toolchain/bin/../sysroot/usr/lib/../lib/crtbegin_dynamic.o:crtbegin.c:function _start: error: undefined reference to 'main'
clang38: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [libz.1.2.8.dylib] Error 1
make[5]: Leaving directory `/Users/xingzhaolong/hg/paddle_project/mobilenet_neon/android_build/third_party/zlib/src/zlib-build'
make[4]: *** [CMakeFiles/zlib.dir/all] Error 2
make[4]: Leaving directory `/Users/xingzhaolong/hg/paddle_project/mobilenet_neon/android_build/third_party/zlib/src/zlib-build'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/Users/xingzhaolong/hg/paddle_project/mobilenet_neon/android_build/third_party/zlib/src/zlib-build'
make[2]: *** [third_party/zlib/src/zlib-stamp/zlib-build] Error 2
make[2]: Leaving directory `/Users/xingzhaolong/hg/paddle_project/mobilenet_neon/android_build'
make[1]: *** [CMakeFiles/zlib.dir/all] Error 2
make[1]: Leaving directory `/Users/xingzhaolong/hg/paddle_project/mobilenet_neon/android_build'
make: *** [all] Error 2