|
|
|
@ -60,6 +60,7 @@ let version = "5.5.0"; |
|
|
|
|
++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch |
|
|
|
|
++ optional noSysDirs ../no-sys-dirs.patch |
|
|
|
|
++ optional langFortran ../gfortran-driving.patch |
|
|
|
|
++ optional (targetPlatform.libc == "musl") ../libgomp-dont-force-initial-exec.patch |
|
|
|
|
++ optional stdenv.hostPlatform.isMusl (fetchpatch { |
|
|
|
|
url = https://raw.githubusercontent.com/richfelker/musl-cross-make/e84b1bd1fc12a3def33111ca6df522cd6e5ec361/patches/gcc-5.3.0/0001-musl.diff; |
|
|
|
|
sha256 = "0pppbf8myi2kjhm3z3479ihn1cm60kycfv60gj8yy1bs0pl1qcfm"; |
|
|
|
@ -331,7 +332,12 @@ stdenv.mkDerivation ({ |
|
|
|
|
# On Illumos/Solaris GNU as is preferred |
|
|
|
|
"--with-gnu-as" "--without-gnu-ld" |
|
|
|
|
] |
|
|
|
|
++ optional (targetPlatform == hostPlatform && targetPlatform.libc == "musl") "--disable-libsanitizer" |
|
|
|
|
++ optionals (targetPlatform == hostPlatform && targetPlatform.libc == "musl") [ |
|
|
|
|
"--disable-libsanitizer" |
|
|
|
|
"--disable-symvers" |
|
|
|
|
"libat_cv_have_ifunc=no" |
|
|
|
|
"--disable-gnu-indirect-function" |
|
|
|
|
] |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null; |
|
|
|
|