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
|
# internal pcre would only add <200kB, but it's relatively common
|
||||||
configureFlags = [ "--with-pcre=system" ]
|
configureFlags = [ "--with-pcre=system" ]
|
||||||
++ optional stdenv.isDarwin "--disable-compile-warnings"
|
++ 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"
|
++ optional stdenv.isSunOS "--disable-dtrace"
|
||||||
# Can't run this test when cross-compiling
|
# Can't run this test when cross-compiling
|
||||||
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
|
|
|
@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = !stdenv.hostPlatform.isMusl; /* iconv binary */
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://man-db.nongnu.org;
|
homepage = http://man-db.nongnu.org;
|
||||||
|
|
|
@ -9977,7 +9977,7 @@ with pkgs;
|
||||||
# We also provide `libiconvReal`, which will always be a standalone libiconv,
|
# We also provide `libiconvReal`, which will always be a standalone libiconv,
|
||||||
# just in case you want it regardless of platform.
|
# just in case you want it regardless of platform.
|
||||||
libiconv =
|
libiconv =
|
||||||
if hostPlatform.libc == "glibc"
|
if (hostPlatform.libc == "glibc" || hostPlatform.libc == "musl")
|
||||||
then glibcIconv (if hostPlatform != buildPlatform
|
then glibcIconv (if hostPlatform != buildPlatform
|
||||||
then libcCross
|
then libcCross
|
||||||
else stdenv.cc.libc)
|
else stdenv.cc.libc)
|
||||||
|
|
Loading…
Reference in New Issue