[cfe-dev] How to compile Clang for ARM Linux on x86_64 Linux?
Anton Smirnov
dev at antonsmirnov.name
Fri Sep 27 12:00:04 PDT 2013
I've followed Clang doc <http://llvm.org/docs/HowToBuildOnARM.html> to
cross-compile Clang for ARM Linux machine (Android) on x86_64 ubuntu
machine:
./configure --build=armv7l-unknown-linux-gnueabihf
\--host=armv7l-unknown-linux-gnueabihf
\--target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9
\--with-float=hard --with-abi=aapcs-vfp --with-fpu=neon
\--enable-targets=arm --enable-optimized --enable-assertions
--enable-static --disable-shared
--prefix=/home/asmirnov/llvm_arm_build_static
Then i did make & make install (no errors) and found here is file
libclang.so output:
asmirnov at vmb:~/llvm_arm_build_static$ cd ./Release+Asserts/lib
asmirnov at vmb:~/llvm_arm_build_static/Release+Asserts/lib$ file
./libclang.so./libclang.so: ELF 32-bit LSB shared object, Intel 80386,
version 1 (GNU/Linux), dynamically linked,
BuildID[sha1]=0xabf77b97daef0b9a6669d291400ffa4b6c98695c, not stripped
Why is it i386? Why is it dynamically linked? How can i achieve my goal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130928/d7beb9ea/attachment.html>
More information about the cfe-dev
mailing list