mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
gcc: Misc indentation and whitespace-in-string fixes
This commit is contained in:
parent
1c1207220f
commit
ab77a6bb1e
7 changed files with 398 additions and 394 deletions
|
@ -74,8 +74,8 @@ let version = "4.5.4";
|
||||||
optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
|
optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
|
||||||
optional (gccAbi != null) "--with-abi=${gccAbi}" ++
|
optional (gccAbi != null) "--with-abi=${gccAbi}" ++
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ " --with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
" --with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then [
|
(if crossMingw && crossStageStatic then [
|
||||||
"--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
|
@ -89,18 +89,20 @@ let version = "4.5.4";
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then [
|
] else if crossStageStatic then [
|
||||||
"--disable-libssp --disable-nls"
|
"--disable-libssp"
|
||||||
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads"
|
"--disable-threads"
|
||||||
"--disable-libmudflap"
|
"--disable-libmudflap"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else [
|
] else [
|
||||||
"--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++ (if crossMingw then [
|
] ++
|
||||||
|
(if crossMingw then [
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-hash-synchronization"
|
"--enable-hash-synchronization"
|
||||||
|
@ -111,9 +113,8 @@ let version = "4.5.4";
|
||||||
] else [
|
] else [
|
||||||
"--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float"
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
]) # No final libdecnumber (it may work only in 386)
|
]));
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else
|
stageNameAddon = if crossStageStatic then "-stage-static" else
|
||||||
"-stage-final";
|
"-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
@ -274,11 +275,12 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
|
|
@ -123,7 +123,6 @@ let version = "4.8.5";
|
||||||
optional (gccFloat != null) "--with-float=${gccFloat}" ++
|
optional (gccFloat != null) "--with-float=${gccFloat}" ++
|
||||||
optional (gccMode != null) "--with-mode=${gccMode}";
|
optional (gccMode != null) "--with-mode=${gccMode}";
|
||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem";
|
crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem";
|
||||||
|
@ -133,8 +132,8 @@ let version = "4.8.5";
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -145,19 +144,20 @@ let version = "4.8.5";
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then
|
] else if crossStageStatic then [
|
||||||
[ "--disable-libssp --disable-nls"
|
"--disable-libssp"
|
||||||
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads "
|
"--disable-threads"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-libquadmath"
|
"--disable-libquadmath"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic " # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
[ "--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
|
@ -178,13 +178,11 @@ let version = "4.8.5";
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp"
|
"--disable-libgomp"
|
||||||
] ++
|
] ++ [
|
||||||
[ "--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
]
|
]));
|
||||||
)
|
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -347,7 +345,11 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Optional features
|
# Optional features
|
||||||
optional (isl != null) "--with-isl=${isl}" ++
|
optional (isl != null) "--with-isl=${isl}" ++
|
||||||
optional (cloog != null) "--with-cloog=${cloog} --disable-cloog-version-check --enable-cloog-backend=isl" ++
|
optionals (cloog != null) [
|
||||||
|
"--with-cloog=${cloog}"
|
||||||
|
"--disable-cloog-version-check"
|
||||||
|
"--enable-cloog-backend=isl"
|
||||||
|
] ++
|
||||||
|
|
||||||
(if enableMultilib
|
(if enableMultilib
|
||||||
then ["--enable-multilib" "--disable-libquadmath"]
|
then ["--enable-multilib" "--disable-libquadmath"]
|
||||||
|
@ -359,11 +361,12 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
@ -386,9 +389,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals hostPlatform.isSunOS [
|
optionals hostPlatform.isSunOS [
|
||||||
"--enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
"--with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,8 @@ let version = "4.9.4";
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -135,23 +135,22 @@ let version = "4.9.4";
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then
|
] else if crossStageStatic then [
|
||||||
[ "--disable-libssp"
|
"--disable-libssp"
|
||||||
"--disable-nls"
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads "
|
"--disable-threads"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-libquadmath"
|
"--disable-libquadmath"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic " # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
[ "--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
|
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
|
@ -173,12 +172,11 @@ let version = "4.9.4";
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp"
|
"--disable-libgomp"
|
||||||
] ++
|
] ++ [
|
||||||
[ "--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
])
|
]));
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -353,15 +351,20 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Optional features
|
# Optional features
|
||||||
optional (isl != null) "--with-isl=${isl}" ++
|
optional (isl != null) "--with-isl=${isl}" ++
|
||||||
optional (cloog != null) "--with-cloog=${cloog} --disable-cloog-version-check --enable-cloog-backend=isl" ++
|
optionals (cloog != null) [
|
||||||
|
"--with-cloog=${cloog}"
|
||||||
|
"--disable-cloog-version-check"
|
||||||
|
"--enable-cloog-backend=isl"
|
||||||
|
] ++
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
@ -384,9 +387,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals hostPlatform.isSunOS [
|
optionals hostPlatform.isSunOS [
|
||||||
"--enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
"--with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -427,7 +430,7 @@ stdenv.mkDerivation ({
|
||||||
optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++
|
optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr.crossDrv}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr.crossDrv}" ++
|
||||||
optional (cloog != null) "--with-cloog=${cloog.crossDrv} --enable-cloog-backend=isl" ++
|
optional (cloog != null) "--with-cloog=${cloog.crossDrv}" "--enable-cloog-backend=isl" ++
|
||||||
[
|
[
|
||||||
"--with-gmp=${gmp.crossDrv}"
|
"--with-gmp=${gmp.crossDrv}"
|
||||||
"--with-mpfr=${mpfr.crossDrv}"
|
"--with-mpfr=${mpfr.crossDrv}"
|
||||||
|
|
|
@ -127,8 +127,8 @@ let version = "5.5.0";
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -139,19 +139,20 @@ let version = "5.5.0";
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then
|
] else if crossStageStatic then [
|
||||||
[ "--disable-libssp --disable-nls"
|
"--disable-libssp"
|
||||||
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads "
|
"--disable-threads"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-libquadmath"
|
"--disable-libquadmath"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic " # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
[ "--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
|
@ -175,13 +176,11 @@ let version = "5.5.0";
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp"
|
"--disable-libgomp"
|
||||||
] ++
|
] ++ [
|
||||||
[ "--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
]
|
]));
|
||||||
)
|
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -370,11 +369,12 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
@ -397,9 +397,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals hostPlatform.isSunOS [
|
optionals hostPlatform.isSunOS [
|
||||||
"--enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
"--with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -122,10 +122,10 @@ let version = "6.4.0";
|
||||||
mkPlatformFlags targetPlatform ++
|
mkPlatformFlags targetPlatform ++
|
||||||
|
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ " --with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
" --with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -146,14 +146,12 @@ let version = "6.4.0";
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic" # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
|
"--enable-__cxa_atexit"
|
||||||
[ "--enable-__cxa_atexit"
|
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
|
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
|
@ -174,12 +172,12 @@ let version = "6.4.0";
|
||||||
"--disable-libsanitizer"
|
"--disable-libsanitizer"
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp" ] ++
|
"--disable-libgomp"
|
||||||
[ "--enable-threads=posix"
|
] ++ [
|
||||||
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
])
|
]));
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -372,7 +370,7 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
|
@ -399,9 +397,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals (hostPlatform.isSunOS) [
|
optionals (hostPlatform.isSunOS) [
|
||||||
" --enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
" --with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -122,8 +122,8 @@ let version = "7.2.0";
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -134,23 +134,22 @@ let version = "7.2.0";
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then
|
] else if crossStageStatic then [
|
||||||
[ "--disable-libssp"
|
"--disable-libssp"
|
||||||
"--disable-nls"
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads "
|
"--disable-threads"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-libquadmath"
|
"--disable-libquadmath"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic " # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
[ "--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
|
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
|
@ -172,12 +171,11 @@ let version = "7.2.0";
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp"
|
"--disable-libgomp"
|
||||||
] ++
|
] ++ [
|
||||||
[ "--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
])
|
]));
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -365,11 +363,12 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
@ -392,9 +391,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals hostPlatform.isSunOS [
|
optionals hostPlatform.isSunOS [
|
||||||
"--enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
"--with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -122,8 +122,8 @@ let version = "7-20170409";
|
||||||
# Ensure that -print-prog-name is able to find the correct programs.
|
# Ensure that -print-prog-name is able to find the correct programs.
|
||||||
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
[ "--with-as=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-as"
|
||||||
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
"--with-ld=${targetPackages.stdenv.cc.bintools}/bin/${targetPlatform.config}-ld" ] ++
|
||||||
(if crossMingw && crossStageStatic then
|
(if crossMingw && crossStageStatic then [
|
||||||
[ "--with-headers=${libcCross}/include"
|
"--with-headers=${libcCross}/include"
|
||||||
"--with-gcc"
|
"--with-gcc"
|
||||||
"--with-gnu-as"
|
"--with-gnu-as"
|
||||||
"--with-gnu-ld"
|
"--with-gnu-ld"
|
||||||
|
@ -134,23 +134,22 @@ let version = "7-20170409";
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--disable-win32-registry"
|
"--disable-win32-registry"
|
||||||
] else if crossStageStatic then
|
] else if crossStageStatic then [
|
||||||
[ "--disable-libssp"
|
"--disable-libssp"
|
||||||
"--disable-nls"
|
"--disable-nls"
|
||||||
"--without-headers"
|
"--without-headers"
|
||||||
"--disable-threads "
|
"--disable-threads"
|
||||||
"--disable-libgomp "
|
"--disable-libgomp"
|
||||||
"--disable-libquadmath"
|
"--disable-libquadmath"
|
||||||
"--disable-shared"
|
"--disable-shared"
|
||||||
"--disable-libatomic " # libatomic requires libc
|
"--disable-libatomic" # libatomic requires libc
|
||||||
"--disable-decimal-float" # libdecnumber requires libc
|
"--disable-decimal-float" # libdecnumber requires libc
|
||||||
] else
|
] else [
|
||||||
(if crossDarwin then ["--with-sysroot=${getLib libcCross}/share/sysroot"]
|
(if crossDarwin then "--with-sysroot=${getLib libcCross}/share/sysroot"
|
||||||
else ["--with-headers=${getDev libcCross}/include"]) ++
|
else "--with-headers=${getDev libcCross}/include")
|
||||||
[ "--enable-__cxa_atexit"
|
"--enable-__cxa_atexit"
|
||||||
"--enable-long-long"
|
"--enable-long-long"
|
||||||
] ++
|
] ++
|
||||||
|
|
||||||
(if crossMingw then [
|
(if crossMingw then [
|
||||||
"--enable-threads=win32"
|
"--enable-threads=win32"
|
||||||
"--enable-sjlj-exceptions"
|
"--enable-sjlj-exceptions"
|
||||||
|
@ -172,12 +171,11 @@ let version = "7-20170409";
|
||||||
# In uclibc cases, libgomp needs an additional '-ldl'
|
# In uclibc cases, libgomp needs an additional '-ldl'
|
||||||
# and as I don't know how to pass it, I disable libgomp.
|
# and as I don't know how to pass it, I disable libgomp.
|
||||||
"--disable-libgomp"
|
"--disable-libgomp"
|
||||||
] ++
|
] ++ [
|
||||||
[ "--enable-threads=posix"
|
"--enable-threads=posix"
|
||||||
"--enable-nls"
|
"--enable-nls"
|
||||||
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
"--disable-decimal-float" # No final libdecnumber (it may work only in 386)
|
||||||
])
|
]));
|
||||||
);
|
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
||||||
|
|
||||||
|
@ -352,11 +350,12 @@ stdenv.mkDerivation ({
|
||||||
|
|
||||||
# Java options
|
# Java options
|
||||||
optionals langJava [
|
optionals langJava [
|
||||||
"--with-ecj-jar=${javaEcj} "
|
"--with-ecj-jar=${javaEcj}"
|
||||||
|
|
||||||
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
# Follow Sun's layout for the convenience of IcedTea/OpenJDK. See
|
||||||
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
# <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008888.html>.
|
||||||
"--enable-java-home --with-java-home=\${prefix}/lib/jvm/jre "
|
"--enable-java-home"
|
||||||
|
"--with-java-home=\${prefix}/lib/jvm/jre"
|
||||||
] ++
|
] ++
|
||||||
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
optional javaAwtGtk "--enable-java-awt=gtk" ++
|
||||||
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr}" ++
|
||||||
|
@ -379,9 +378,9 @@ stdenv.mkDerivation ({
|
||||||
# Platform-specific flags
|
# Platform-specific flags
|
||||||
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
|
||||||
optionals hostPlatform.isSunOS [
|
optionals hostPlatform.isSunOS [
|
||||||
"--enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit"
|
"--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
|
||||||
# On Illumos/Solaris GNU as is preferred
|
# On Illumos/Solaris GNU as is preferred
|
||||||
"--with-gnu-as --without-gnu-ld"
|
"--with-gnu-as" "--without-gnu-ld"
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue