mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] [PATCH v3] llvm/clang support for musl cross make
@ 2021-01-29  3:24 Patrick Oppenlander
  0 siblings, 0 replies; only message in thread
From: Patrick Oppenlander @ 2021-01-29  3:24 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]

Hi,

attached is a v3 of the musl-cross-make clang build patch.

Changes from v2:

* Update default TARGETS list
* Add some sane default -mfpu options
* Support target specific config by setting TARGET_CONFIG_<target> variable
* Drop spurious musl patch - this was caused by missing -mfpu options
* Switch to ninja

I don't like depending on ninja. Unfortunately there appear to be
numerous parallel make dependency bugs somewhere between cmake and
make which causes parallel "Unix Makefiles" builds to spuriously fail
with the versions of cmake/make on my development machine. cmake+ninja
has never failed for me.

I haven't submitted the three patches included here yet as I'm waiting
for feedback on the overall direction of this work.

I also have some extra patches which make lld & llvm-objcopy usable in
my embedded projects but have not included them here as they're under
upstream review.

Changes from v1:

* Install clang-resource-headers (fixes missing stdatomic.h, etc.)
* Fix installed symlinks (fixes missing cc, c++, cpp)
* Statically link libunwind and libc++abi into libc++.a and libc++.so
* Updated patch for armv7m clang VFP asm crash
* Support setting COMPILER from config.mak
* Support target specific musl config by setting MUSL_CONFIG_<target> variable

Best regards,

Patrick

[-- Attachment #2: 0001-clang-support.patch --]
[-- Type: application/octet-stream, Size: 17984 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-29  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-29  3:24 [musl] [PATCH v3] llvm/clang support for musl cross make Patrick Oppenlander

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git