···56 # gcj in.
57 unset LIBRARY_PATH
58 unset CPATH
59- if test -z "$crossStageStatic"; then
60 EXTRA_FLAGS_TARGET="-g0 -O2 -B${libcCross}/lib -idirafter ${libcCross}/include"
61 EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib"
62 fi
···121 # the target libgcc as target libraries.
122 # See 'configure:5370'
123 rm -Rf zlib
0000000124 fi
125126 # Perform the build in a different directory.
···56 # gcj in.
57 unset LIBRARY_PATH
58 unset CPATH
59+ if test -z "$crossStageStatic" -o -n "$crossMingw"; then
60 EXTRA_FLAGS_TARGET="-g0 -O2 -B${libcCross}/lib -idirafter ${libcCross}/include"
61 EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib"
62 fi
···121 # the target libgcc as target libraries.
122 # See 'configure:5370'
123 rm -Rf zlib
124+ fi
125+126+ if test -n "$crossMingw" -a -n "$crossStageStatic"; then
127+ mkdir -p ../mingw
128+ # --with-build-sysroot expects that:
129+ cp -R $libcCross/include ../mingw
130+ configureFlags="$configureFlags --with-build-sysroot=`pwd`/.."
131 fi
132133 # Perform the build in a different directory.
+32-6
pkgs/development/compilers/gcc-4.5/default.nix
···68 withArch = if gccArch != null then " --with-arch=${gccArch}" else "";
69 withCpu = if gccCpu != null then " --with-cpu=${gccCpu}" else "";
70 withAbi = if gccAbi != null then " --with-abi=${gccAbi}" else "";
07172 crossConfigureFlags =
73 "--target=${cross.config}" +
74 withArch +
75 withCpu +
76 withAbi +
77- (if crossStageStatic then
00000000000078 " --disable-libssp --disable-nls" +
79 " --without-headers" +
80 " --disable-threads " +
···86 " --with-headers=${libcCross}/include" +
87 " --enable-__cxa_atexit" +
88 " --enable-long-long" +
89- " --enable-threads=posix" +
90- " --enable-nls" +
91- " --disable-decimal-float" # No final libdecnumber (it may work only in 386)
00000000092 );
93 stageNameAddon = if (crossStageStatic) then "-stage-static" else
94 "-stage-final";
···110 };
111112 patches =
113- [ ]
114 ++ optional noSysDirs ./no-sys-dirs.patch
115 # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its
116 # target libraries and tools.
···119 ++ optional (cross != null && cross.arch == "sparc64") ./pr41818.patch;
120121 inherit noSysDirs profiledCompiler staticCompiler langJava crossStageStatic
122- libcCross;
123124 buildInputs = [ texinfo gmp mpfr mpc libelf gettext which ]
125 ++ (optional (ppl != null) ppl)
···227 platforms = stdenv.lib.platforms.linux ++ optionals (langAda == false) [ "i686-darwin" ];
228 };
229}
0000230// (if langVhdl then rec {
231 name = "ghdl-0.29";
232