Static linking with glibc is problematic. On the other hand, static linking can simplify deployment and distribution of binaries. Unlike glibc, musl officially supports static linking and in fact it has been optimized for it.
None so for.
- For 9.6.5/9.6.6/9.8.2/9.10.1: Compiled against
musl-1.2.4
andlinux-headers-6.6
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 9.2.7/9.2.8/9.4.5/9.4.6/9.4.8/9.6.2/9.6.3/9.6.4/9.8.1: Compiled against
musl-1.2.3
andlinux-headers-6.1
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 9.4.4: Compiled against
musl-1.2.3
andlinux-headers-5.15
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.10.5/8.10.6/8.10.7/9.2.1/9.0.2/9.2.4/9.4.3: Compiled against
musl-1.2.1
andlinux-headers-5.10
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.10.3/8.10.4/9.0.1: Compiled against
musl-1.2.1
andlinux-headers-4.14
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.8.4/8.10.2: Compiled against
musl-1.1.24
andlinux-headers-4.14
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.8.2/8.8.3/8.10.1: Compiled against
musl-1.1.24
andlinux-headers-3.18
on a gentoo system. Depends onlibgmp.so.10
andlibtinfow.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.6.5/8.8.1: Compiled against
musl-1.1.21
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.4.4/8.6.2/8.6.3/8.6.4: Compiled against
musl-1.1.20
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.6.1: Compiled against
musl-1.1.20
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. I usedgcc-7.3.0
to compile this. Gentoo's gcc now produces pie binaries by default. I wasn't able to make that work with ghc, so I had to pass the-no-pie
flag everywhere, by using the followingbuild.mk
V=1
HADDOCK_DOCS=NO
HSCOLOUR_SRCS=NO
BUILD_SPHINX_HTML=NO
BUILD_SPHINX_PDF=NO
BeConservative=YES
SRC_HC_OPTS+= -optc-no-pie -optl-no-pie
SRC_CC_OPTS+= -no-pie
SRC_LD_OPTS+= -no-pie
- For 8.4.1/8.4.2/8.4.3: Compiled against
musl-1.1.19
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. I usedgcc-6.4.0
to compile this. Gentoo's gcc now produces pie binaries by default. I wasn't able to make that work with ghc, so I had to pass the-no-pie
flag everywhere, by using the followingbuild.mk
V=1
HADDOCK_DOCS=NO
HSCOLOUR_SRCS=NO
BUILD_SPHINX_HTML=NO
BUILD_SPHINX_PDF=NO
BeConservative=YES
SRC_HC_OPTS+= -optc-no-pie -optl-no-pie
SRC_CC_OPTS+= -no-pie
SRC_LD_OPTS+= -no-pie
- For 8.2.1: Compiled against
musl-1.1.16
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. The--disable-ld-override
flag was used to configure the sources. The same flag should probably be used for installation too, i.e../configure --disable-ld-override --prefix=...
. - For 8.0.2: Compiled against
musl-1.1.15
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.6
. - For 8.0.1: Compiled against
musl-1.1.14
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
. - For 7.10.3: Compiled against
musl-1.1.12
andlinux-headers-3.1
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
. - For 7.10.2: Compiled against
musl-1.1.10
andlinux-headers-3.1
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
. - For 7.10.1: Compiled against
musl-1.1.8
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
. - For 7.8.4: Compiled against
musl-1.1.8
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
. - For 7.6.3: Compiled against
musl-1.1.8
andlinux-headers-3.16
on a gentoo system. Depends onlibgmp.so.10
andlibncursesw.so.5
.
- For 7.10.x and above: none.
- For 7.8.4: fix-execvpe-signature-ghc-7.8.4.patch.
- For 7.6.3: fix-execvpe-signature-ghc-7.6.3.patch.