Created
August 14, 2018 13:15
-
-
Save ljmccarthy/8520690c171b2b538c8409ca7c37f14b to your computer and use it in GitHub Desktop.
Cross-compile musl libc for ARM Cortex A8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export PM=$(grep -c processor /proc/cpuinfo) | |
# TODO compile LLVM compiler_rt for target | |
./configure \ | |
--prefix=/ \ | |
--target=armv7a-unknown-linux-eabi \ | |
CC=clang \ | |
CFLAGS="--target=armv7a-unknown-linux-eabi -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon" \ | |
LDFLAGS="-fuse-ld=lld" \ | |
LIBCC="-lcompiler_rt" && \ | |
make AR=llvm-ar RANLIB=llvm-ranlib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment