Merge pull request #37835 from dtzWill/fix/musl-libiconv
"libiconv" fixes re:musl
This commit is contained in:
commit
01b254ec50
|
@ -73,9 +73,6 @@ stdenv.mkDerivation rec {
|
|||
# internal pcre would only add <200kB, but it's relatively common
|
||||
configureFlags = [ "--with-pcre=system" ]
|
||||
++ optional stdenv.isDarwin "--disable-compile-warnings"
|
||||
# glibc inclues GNU libiconv, but Darwin's iconv function is good enonugh.
|
||||
++ optional (stdenv.hostPlatform.libc != "glibc" && !stdenv.hostPlatform.isDarwin)
|
||||
"--with-libiconv=gnu"
|
||||
++ optional stdenv.isSunOS "--disable-dtrace"
|
||||
# Can't run this test when cross-compiling
|
||||
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
|
|
|
@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
doCheck = !stdenv.hostPlatform.isMusl; /* iconv binary */
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://man-db.nongnu.org;
|
||||
|
|
|
@ -9977,7 +9977,7 @@ with pkgs;
|
|||
# We also provide `libiconvReal`, which will always be a standalone libiconv,
|
||||
# just in case you want it regardless of platform.
|
||||
libiconv =
|
||||
if hostPlatform.libc == "glibc"
|
||||
if (hostPlatform.libc == "glibc" || hostPlatform.libc == "musl")
|
||||
then glibcIconv (if hostPlatform != buildPlatform
|
||||
then libcCross
|
||||
else stdenv.cc.libc)
|
||||
|
|
Loading…
Reference in New Issue