Source: gcc-6 Severity: wishlist Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hi Matthias, I've been working on bootstrapping a musl-based port for a while now and think that some patches are sufficiently stable that they can go upstream already. One of the obstacles here is the strange naming of musl packages. The C library is just called "musl" and the development package is called "musl-dev". Neither the naming nor the versioning matches glibc, so the resulting packages are not installable. I am attaching a patch that updates $(LIBC_DEP), $(libc_ver) and $(libc_dev_ver) to match musl. Please consider applying it. Other than this patch not much is missing for musl support. As far as I can see, a gcc upstream change to src/libstdc++-v3/configure.host is still trickling down and the hard-float detection is broken for musl. Neither of which are subject of this bug. I just list those here to get you an impression of how much is missing. Helmut
diff -u a/debian/rules.conf b/debian/rules.conf --- a/debian/rules.conf +++ b/debian/rules.conf @@ -240,6 +240,11 @@ else LIBC_DEP = libc6 endif + ifneq (,$(findstring musl-linux-,$(DEB_TARGET_ARCH))) + LIBC_DEP = musl + libc_ver = 0.9 + libc_dev_ver = 0.9 + endif else ifeq ($(DEB_TARGET_ARCH_OS),hurd) LIBC_DEP = libc0.3