-
Notifications
You must be signed in to change notification settings - Fork 34
i686 linux android
J-P Nurmi edited this page Sep 6, 2020
·
1 revision
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export NDK=~/Android/ndk
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export TARGET=i686-linux-android
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export API=21
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export AR=$TOOLCHAIN/bin/$TARGET-ar
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export AS=$TOOLCHAIN/bin/$TARGET-as
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export CC=$TOOLCHAIN/bin/$TARGET$API-clang
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export LD=$TOOLCHAIN/bin/$TARGET-ld
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ export STRIP=$TOOLCHAIN/bin/$TARGET-strip
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I autostuff
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'autostuff'.
libtoolize: copying file 'autostuff/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'autostuff'.
libtoolize: copying file 'autostuff/libtool.m4'
libtoolize: copying file 'autostuff/ltoptions.m4'
libtoolize: copying file 'autostuff/ltsugar.m4'
libtoolize: copying file 'autostuff/ltversion.m4'
libtoolize: copying file 'autostuff/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:46: installing 'autostuff/ar-lib'
configure.ac:46: installing 'autostuff/compile'
configure.ac:67: installing 'autostuff/config.guess'
configure.ac:67: installing 'autostuff/config.sub'
configure.ac:44: installing 'autostuff/install-sh'
configure.ac:44: installing 'autostuff/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'autostuff/depcomp'
parallel-tests: installing 'autostuff/test-driver'
autoreconf: Leaving directory `.'
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ ./configure --host $TARGET CFLAGS=-O2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-linux-android-strip... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for i686-linux-android-gcc... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang accepts -g... yes
checking for /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang option to accept ISO C89... none needed
checking whether /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang understands -c and -o together... yes
checking dependency style of /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang... gcc3
checking for i686-linux-android-ar... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ar
checking the archiver (/home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ar) interface... ar
checking for i686-linux-android-gcc... (cached) /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang accepts -g... (cached) yes
checking for /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang option to accept ISO C89... (cached) none needed
checking whether /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang understands -c and -o together... (cached) yes
checking dependency style of /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang... (cached) gcc3
checking whether ln -s works... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-pc-linux-android
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ld
checking if the linker (/home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-linux-android-dumpbin... no
checking for i686-linux-android-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to i686-pc-linux-android format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ld option to reload object files... -r
checking for i686-linux-android-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-linux-android-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for i686-linux-android-ar... (cached) /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ar
checking for archiver @FILE support... @
checking for i686-linux-android-strip... (cached) /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-strip
checking for i686-linux-android-ranlib... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ranlib
checking command to parse nm output from /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for i686-linux-android-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang supports -fno-rtti -fno-exceptions... yes
checking for /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang option to produce PIC... -fPIC -DPIC
checking if /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang PIC flag -fPIC -DPIC works... yes
checking if /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang static flag -static works... yes
checking if /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang supports -c -o file.o... yes
checking if /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang supports -c -o file.o... (cached) yes
checking whether the /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang linker (/home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... Android linker
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for size_t... yes
checking for struct termios2... yes
checking for struct termiox... yes
checking for struct termios.c_ispeed... no
checking for struct termios.c_ospeed... no
checking for struct termios2.c_ispeed... yes
checking for struct termios2.c_ospeed... yes
checking whether BOTHER is declared... yes
checking for struct serial_struct... yes
checking for realpath... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for flock... yes
checking for clock_gettime... yes
checking for visibility control... attribute
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libserialport.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
libserialport configuration summary:
- Package version................. 0.1.1
- Library ABI version............. 1:0:1
- Prefix.......................... /usr/local
- Building on..................... x86_64-pc-linux-gnu
- Building for.................... i686-pc-linux-android
- Building shared / static........ yes / yes
Compile configuration:
- C compiler...................... /home/jpnurmi/Android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang
- C compiler version.............. Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
- C compiler flags................ -O2
- Linker flags....................
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ make
make all-am
CC serialport.lo
CC timing.lo
CC linux.lo
CC linux_termios.lo
CCLD libserialport.la
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ ls -lah .libs/libserialport.so
-rwxr-xr-x 1 jpnurmi jpnurmi 59K Sep 6 18:30 .libs/libserialport.so
jpnurmi@jp-xps-15-7590:~/Temp/libserialport (master)$ file .libs/libserialport.so
.libs/libserialport.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped