Michael Clark via llvm-dev
2017-Aug-05 03:48 UTC
[llvm-dev] llvm-dev Digest, Vol 158, Issue 27
> On 5 Aug 2017, at 2:25 PM, via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > On 8/4/17 4:29 PM, Goran Mekić wrote: >> On Fri, Aug 04, 2017 at 04:03:35PM -0600, Jonathan Roelofs wrote: >>>>> 1) Pick a directory as your sysroot >>>> ~/arm-sysroot >>>> >>>>> 2) Install the libc headers there (without having built it) >>>> What I did was mv musl-*/include ~/arm-sysroot/usr/include. >>> I think you need to copy them, not move them. >> On a new directories and fresh untar of musl, I don't think there's a difference > > I was assuming you'd want to build it from the same sources later...Copying the includes directory is not sufficient for musl as the musl build system assembles the arch specific bits directories from arch/${ARCH} and it constructs the syscalls.h headers at built time. It uses the ${ARCH} variable to meld directories together in the install target and there should be a valid config.mak or ARCH=aarch64 should be passed on the make command line. To make the header directory install to ${SYSROOT}/usr/include you need to do something like this: cd musl echo ARCH=aarch64 > config.mak echo prefix=/usr >> config.mak make DESTDIR=${SYSROOT} install-headers You can build and install only the static libs like this: make DESTDIR=${SYSROOT} SHARED_LIBS= install-libs You can build and install the dynamic and static libs like this: make DESTDIR=${SYSROOT} install-libs -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170805/7cf4d9d9/attachment.html>