Re: cross compile dietlibc with clang for arm
Felix von Leitner <[email protected]> Mon, 16 Dec 2019 14:02:09 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> ... > arm-cortexa7-linux-gnueabihf-clang -I. -isystem include -pipe -nostdinc -D_REENTRANT -Wall -O2 -fstack-protector-all -march=armv7-a -mtune=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 --sysroot=/opt/OSELAS.Toolchain/arm-cortexa7-linux-gnueabihf/sysroot-arm-cortexa7-linux-gnueabihf --gcc-toolchain=/opt/OSELAS.Toolchain/arm-cortexa7-linux-gnueabihf -ffunction-sections -fdata-sections -fno-stack-protector -std=gnu99 -fno-builtin-bcmp -fomit-frame-pointer -fstrict-aliasing -W -Wall -Wextra -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wno-unused -Wredundant-decls -Wshadow -c arm/unified.S -Wa,--noexecstack -o bin-arm/unified.o I would love to officially support cross compiling with clang but I never found out how to do it. Where did you get the arm-cortexa7-linux-gnueabihf-clang (I assume it's a wrapper) and what exactly does it do? Felix