···11-diff --git a/libada/Makefile.in b/libada/Makefile.in
22-index f5057a0..337e0c6 100644
33---- a/libada/Makefile.in
44-+++ b/libada/Makefile.in
55-@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
66- WARN_CFLAGS = @warn_cflags@
77-88- TARGET_LIBGCC2_CFLAGS=
99--GNATLIBCFLAGS= -g -O2
1010-+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
1111- GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
1212- -DIN_RTS @have_getipinfo@
1313-1414---- a/gcc/ada/gcc-interface/Makefile.in
1515-+++ b/gcc/ada/gcc-interface/Makefile.in
1616-@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
1717- SOME_ADAFLAGS =-gnata
1818- FORCE_DEBUG_ADAFLAGS = -g
1919- GNATLIBFLAGS = -gnatpg -nostdinc
2020--GNATLIBCFLAGS = -g -O2
2121-+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
2222- # Pretend that _Unwind_GetIPInfo is available for the target by default. This
2323- # should be autodetected during the configuration of libada and passed down to
2424- # here, but we need something for --disable-libada and hope for the best.
2525-@@ -193,7 +193,7 @@ RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
2626- # Link flags used to build gnat tools. By default we prefer to statically
2727- # link with libgcc to avoid a dependency on shared libgcc (which is tricky
2828- # to deal with as it may conflict with the libgcc provided by the system).
2929--GCC_LINK_FLAGS=-static-libgcc
3030-+GCC_LINK_FLAGS=-static-libgcc $(CFLAGS_FOR_TARGET)
3131-3232- # End of variables for you to override.
3333-
···11-This patch fixes interaction with Libtool.
22-See <http://thread.gmane.org/gmane.comp.gcc.patches/258777>, for details.
33-44---- a/gcc/fortran/gfortranspec.c
55-+++ b/gcc/fortran/gfortranspec.c
66-@@ -461,8 +461,15 @@ For more information about these matters, see the file named COPYING\n\n"));
77- {
88- fprintf (stderr, _("Driving:"));
99- for (i = 0; i < g77_newargc; i++)
1010-+ {
1111-+ if (g77_new_decoded_options[i].opt_index == OPT_l)
1212-+ /* Make sure no white space is inserted after `-l'. */
1313-+ fprintf (stderr, " -l%s",
1414-+ g77_new_decoded_options[i].canonical_option[1]);
1515-+ else
1616- fprintf (stderr, " %s",
1717- g77_new_decoded_options[i].orig_option_with_args_text);
1818-+ }
1919- fprintf (stderr, "\n");
2020- }
···11-diff --git a/libada/Makefile.in b/libada/Makefile.in
22-index f5057a0..337e0c6 100644
33---- a/libada/Makefile.in
44-+++ b/libada/Makefile.in
55-@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
66- WARN_CFLAGS = @warn_cflags@
77-88- TARGET_LIBGCC2_CFLAGS=
99--GNATLIBCFLAGS= -g -O2
1010-+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
1111- GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
1212- -DIN_RTS @have_getipinfo@
1313-1414---- a/gcc/ada/gcc-interface/Makefile.in
1515-+++ b/gcc/ada/gcc-interface/Makefile.in
1616-@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
1717- SOME_ADAFLAGS =-gnata
1818- FORCE_DEBUG_ADAFLAGS = -g
1919- GNATLIBFLAGS = -gnatpg -nostdinc
2020--GNATLIBCFLAGS = -g -O2
2121-+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
2222- # Pretend that _Unwind_GetIPInfo is available for the target by default. This
2323- # should be autodetected during the configuration of libada and passed down to
2424- # here, but we need something for --disable-libada and hope for the best.
2525-@@ -193,7 +193,7 @@ RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
2626- # Link flags used to build gnat tools. By default we prefer to statically
2727- # link with libgcc to avoid a dependency on shared libgcc (which is tricky
2828- # to deal with as it may conflict with the libgcc provided by the system).
2929--GCC_LINK_FLAGS=-static-libgcc
3030-+GCC_LINK_FLAGS=-static-libgcc $(CFLAGS_FOR_TARGET)
3131-3232- # End of variables for you to override.
3333-
···11-Patch to make the target libraries 'configure' scripts find the proper CPP.
22-I noticed that building the mingw32 cross compiler.
33-Looking at the build script for mingw in archlinux, I think that only nixos
44-needs this patch. I don't know why.
55-diff --git a/Makefile.in b/Makefile.in
66-index 93f66b6..d691917 100644
77---- a/Makefile.in
88-+++ b/Makefile.in
99-@@ -266,6 +266,7 @@ BASE_TARGET_EXPORTS = \
1010- AR="$(AR_FOR_TARGET)"; export AR; \
1111- AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
1212- CC="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CC; \
1313-+ CPP="$(CC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS -E"; export CC; \
1414- CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1515- CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1616- CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
1717-@@ -291,11 +292,13 @@ BASE_TARGET_EXPORTS = \
1818- RAW_CXX_TARGET_EXPORTS = \
1919- $(BASE_TARGET_EXPORTS) \
2020- CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
2121-- CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
2222-+ CXX="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; \
2323-+ CXXCPP="$(RAW_CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS -E"; export CXX;
2424-2525- NORMAL_TARGET_EXPORTS = \
2626- $(BASE_TARGET_EXPORTS) \
2727-- CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
2828-+ CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX; \
2929-+ CXXCPP="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS -E"; export CXX;
3030-3131- # Where to find GMP
3232- HOST_GMPLIBS = @gmplibs@
-255
pkgs/development/compilers/gcc/4.8/builder.sh
···11-source $stdenv/setup
22-33-44-export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy
55-mkdir $NIX_FIXINC_DUMMY
66-77-88-if test "$staticCompiler" = "1"; then
99- EXTRA_LDFLAGS="-static"
1010-else
1111- EXTRA_LDFLAGS=""
1212-fi
1313-1414-# GCC interprets empty paths as ".", which we don't want.
1515-if test -z "$CPATH"; then unset CPATH; fi
1616-if test -z "$LIBRARY_PATH"; then unset LIBRARY_PATH; fi
1717-echo "\$CPATH is \`$CPATH'"
1818-echo "\$LIBRARY_PATH is \`$LIBRARY_PATH'"
1919-2020-if test "$noSysDirs" = "1"; then
2121-2222- if test -e $NIX_CC/nix-support/orig-libc; then
2323-2424- # Figure out what extra flags to pass to the gcc compilers
2525- # being generated to make sure that they use our glibc.
2626- extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)"
2727- extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)"
2828-2929- # Use *real* header files, otherwise a limits.h is generated
3030- # that does not include Glibc's limits.h (notably missing
3131- # SSIZE_MAX, which breaks the build).
3232- export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include
3333-3434- # The path to the Glibc binaries such as `crti.o'.
3535- glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib"
3636-3737- else
3838- # Hack: support impure environments.
3939- extraFlags="-isystem /usr/include"
4040- extraLDFlags="-L/usr/lib64 -L/usr/lib"
4141- glibc_libdir="/usr/lib"
4242- export NIX_FIXINC_DUMMY=/usr/include
4343- fi
4444-4545- extraFlags="-I$NIX_FIXINC_DUMMY $extraFlags"
4646- extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
4747-4848- # BOOT_CFLAGS defaults to `-g -O2'; since we override it below,
4949- # make sure to explictly add them so that files compiled with the
5050- # bootstrap compiler are optimized and (optionally) contain
5151- # debugging information (info "(gccinstall) Building").
5252- if test -n "$dontStrip"; then
5353- extraFlags="-O2 -g $extraFlags"
5454- else
5555- # Don't pass `-g' at all; this saves space while building.
5656- extraFlags="-O2 $extraFlags"
5757- fi
5858-5959- EXTRA_FLAGS="$extraFlags"
6060- for i in $extraLDFlags; do
6161- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i"
6262- done
6363-6464- if test -n "$targetConfig"; then
6565- # Cross-compiling, we need gcc not to read ./specs in order to build
6666- # the g++ compiler (after the specs for the cross-gcc are created).
6767- # Having LIBRARY_PATH= makes gcc read the specs from ., and the build
6868- # breaks. Having this variable comes from the default.nix code to bring
6969- # gcj in.
7070- unset LIBRARY_PATH
7171- unset CPATH
7272- if test -z "$crossStageStatic"; then
7373- EXTRA_TARGET_CFLAGS="-B${libcCross}/lib -idirafter ${libcCross}/include"
7474- EXTRA_TARGET_LDFLAGS="-Wl,-L${libcCross}/lib -Wl,-rpath,${libcCross}/lib -Wl,-rpath-link,${libcCross}/lib"
7575- fi
7676- else
7777- if test -z "$NIX_CC_CROSS"; then
7878- EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS"
7979- EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS"
8080- EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS"
8181- else
8282- # This the case of cross-building the gcc.
8383- # We need special flags for the target, different than those of the build
8484- # Assertion:
8585- test -e $NIX_CC_CROSS/nix-support/orig-libc
8686-8787- # Figure out what extra flags to pass to the gcc compilers
8888- # being generated to make sure that they use our glibc.
8989- extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)"
9090- extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)"
9191-9292- # Use *real* header files, otherwise a limits.h is generated
9393- # that does not include Glibc's limits.h (notably missing
9494- # SSIZE_MAX, which breaks the build).
9595- NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include
9696-9797- # The path to the Glibc binaries such as `crti.o'.
9898- glibc_dir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)"
9999- glibc_libdir="$glibc_dir/lib"
100100- configureFlags="$configureFlags --with-native-system-header-dir=$glibc_dir/include"
101101-102102- extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags"
103103- extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
104104-105105- EXTRA_TARGET_CFLAGS="$extraFlags"
106106- for i in $extraLDFlags; do
107107- EXTRA_TARGET_LDFLAGS="$EXTRA_TARGET_LDFLAGS -Wl,$i"
108108- done
109109- fi
110110- fi
111111-112112- # CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find
113113- # the startfiles.
114114- # FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx
115115- # for the startfiles.
116116- makeFlagsArray+=( \
117117- NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
118118- SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
119119- CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
120120- CXXFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
121121- CFLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
122122- CXXFLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
123123- FLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
124124- LDFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
125125- LDFLAGS_FOR_TARGET="$EXTRA_TARGET_LDFLAGS $EXTRA_TARGET_LDFLAGS" \
126126- )
127127-128128- if test -z "$targetConfig"; then
129129- makeFlagsArray+=( \
130130- BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
131131- BOOT_LDFLAGS="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \
132132- )
133133- fi
134134-135135- if test -n "$targetConfig" -a "$crossStageStatic" == 1; then
136136- # We don't want the gcc build to assume there will be a libc providing
137137- # limits.h in this stagae
138138- makeFlagsArray+=( \
139139- LIMITS_H_TEST=false \
140140- )
141141- else
142142- makeFlagsArray+=( \
143143- LIMITS_H_TEST=true \
144144- )
145145- fi
146146-fi
147147-148148-if test -n "$targetConfig"; then
149149- # The host strip will destroy some important details of the objects
150150- dontStrip=1
151151-fi
152152-153153-providedPreConfigure="$preConfigure";
154154-preConfigure() {
155155- if test -n "$newlibSrc"; then
156156- tar xvf "$newlibSrc" -C ..
157157- ln -s ../newlib-*/newlib newlib
158158- # Patch to get armvt5el working:
159159- sed -i -e 's/ arm)/ arm*)/' newlib/configure.host
160160- fi
161161-162162- # Bug - they packaged zlib
163163- if test -d "zlib"; then
164164- # This breaks the build without-headers, which should build only
165165- # the target libgcc as target libraries.
166166- # See 'configure:5370'
167167- rm -Rf zlib
168168- fi
169169-170170- if test -f "$NIX_CC/nix-support/orig-libc"; then
171171- # Patch the configure script so it finds glibc headers. It's
172172- # important for example in order not to get libssp built,
173173- # because its functionality is in glibc already.
174174- glibc_headers="$(cat $NIX_CC/nix-support/orig-libc)/include"
175175- sed -i \
176176- -e "s,glibc_header_dir=/usr/include,glibc_header_dir=$glibc_headers", \
177177- gcc/configure
178178- fi
179179-180180- if test -n "$crossMingw" -a -n "$crossStageStatic"; then
181181- mkdir -p ../mingw
182182- # --with-build-sysroot expects that:
183183- cp -R $libcCross/include ../mingw
184184- configureFlags="$configureFlags --with-build-sysroot=`pwd`/.."
185185- fi
186186-187187- # Eval the preConfigure script from nix expression.
188188- eval "$providedPreConfigure"
189189-190190- # Perform the build in a different directory.
191191- mkdir ../build
192192- cd ../build
193193- configureScript=../$sourceRoot/configure
194194-}
195195-196196-197197-postConfigure() {
198198- # Don't store the configure flags in the resulting executables.
199199- sed -e '/TOPLEVEL_CONFIGURE_ARGUMENTS=/d' -i Makefile
200200-}
201201-202202-203203-preInstall() {
204204- # Make ‘lib64’ a symlink to ‘lib’.
205205- if [ -n "$is64bit" -a -z "$enableMultilib" ]; then
206206- mkdir -p $out/lib
207207- ln -s lib $out/lib64
208208- fi
209209-}
210210-211211-212212-postInstall() {
213213- # Remove precompiled headers for now. They are very big and
214214- # probably not very useful yet.
215215- find $out/include -name "*.gch" -exec rm -rf {} \; -prune
216216-217217- # Remove `fixincl' to prevent a retained dependency on the
218218- # previous gcc.
219219- rm -rf $out/libexec/gcc/*/*/install-tools
220220- rm -rf $out/lib/gcc/*/*/install-tools
221221-222222- # More dependencies with the previous gcc or some libs (gccbug stores the build command line)
223223- rm -rf $out/bin/gccbug
224224- # Take out the bootstrap-tools from the rpath, as it's not needed at all having $out
225225- for i in $out/libexec/gcc/*/*/*; do
226226- if PREV_RPATH=`patchelf --print-rpath $i`; then
227227- patchelf --set-rpath `echo $PREV_RPATH | sed 's,:[^:]*bootstrap-tools/lib,,'` $i
228228- fi
229229- done
230230-231231- # Get rid of some "fixed" header files
232232- rm -rf $out/lib/gcc/*/*/include/root
233233-234234- # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks.
235235- for i in $out/bin/*-gcc*; do
236236- if cmp -s $out/bin/gcc $i; then
237237- ln -sfn gcc $i
238238- fi
239239- done
240240-241241- for i in $out/bin/c++ $out/bin/*-c++* $out/bin/*-g++*; do
242242- if cmp -s $out/bin/g++ $i; then
243243- ln -sfn g++ $i
244244- fi
245245- done
246246-247247- # Disable RANDMMAP on grsec, which causes segfaults when using
248248- # precompiled headers.
249249- # See https://bugs.gentoo.org/show_bug.cgi?id=301299#c31
250250- paxmark r $out/libexec/gcc/*/*/{cc1,cc1plus}
251251-252252- eval "$postInstallGhdl"
253253-}
254254-255255-genericBuild
+6-6
pkgs/development/compilers/gcc/4.8/default.nix
···6464 enableParallelBuilding = true;
65656666 patches = [ ]
6767- ++ optional enableParallelBuilding ./parallel-bconfig.patch
6868- ++ optional (cross != null) ./libstdc++-target.patch
6969- ++ optional noSysDirs ./no-sys-dirs.patch
6767+ ++ optional enableParallelBuilding ../parallel-bconfig.patch
6868+ ++ optional (cross != null) ../libstdc++-target.patch
6969+ ++ optional noSysDirs ../no-sys-dirs.patch
7070 # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its
7171 # target libraries and tools.
7272- ++ optional langAda ./gnat-cflags.patch
7373- ++ optional langFortran ./gfortran-driving.patch;
7272+ ++ optional langAda ../gnat-cflags.patch
7373+ ++ optional langFortran ../gfortran-driving.patch;
74747575 javaEcj = fetchurl {
7676 # The `$(top_srcdir)/ecj.jar' file is automatically picked up at
···207207stdenv.mkDerivation ({
208208 name = "${name}${if stripped then "" else "-debug"}-${version}" + crossNameAddon;
209209210210- builder = ./builder.sh;
210210+ builder = ../builder.sh;
211211212212 src = fetchurl {
213213 url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
···11-This patch fixes interaction with Libtool.
22-See <http://thread.gmane.org/gmane.comp.gcc.patches/258777>, for details.
33-44---- a/gcc/fortran/gfortranspec.c
55-+++ b/gcc/fortran/gfortranspec.c
66-@@ -461,8 +461,15 @@ For more information about these matters, see the file named COPYING\n\n"));
77- {
88- fprintf (stderr, _("Driving:"));
99- for (i = 0; i < g77_newargc; i++)
1010-+ {
1111-+ if (g77_new_decoded_options[i].opt_index == OPT_l)
1212-+ /* Make sure no white space is inserted after `-l'. */
1313-+ fprintf (stderr, " -l%s",
1414-+ g77_new_decoded_options[i].canonical_option[1]);
1515-+ else
1616- fprintf (stderr, " %s",
1717- g77_new_decoded_options[i].orig_option_with_args_text);
1818-+ }
1919- fprintf (stderr, "\n");
2020- }
···11-diff --git a/libada/Makefile.in b/libada/Makefile.in
22-index f5057a0..337e0c6 100644
33---- a/libada/Makefile.in
44-+++ b/libada/Makefile.in
55-@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
66- WARN_CFLAGS = @warn_cflags@
77-88- TARGET_LIBGCC2_CFLAGS=
99--GNATLIBCFLAGS= -g -O2
1010-+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
1111- GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
1212- -DIN_RTS @have_getipinfo@
1313-1414---- a/gcc/ada/gcc-interface/Makefile.in
1515-+++ b/gcc/ada/gcc-interface/Makefile.in
1616-@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
1717- SOME_ADAFLAGS =-gnata
1818- FORCE_DEBUG_ADAFLAGS = -g
1919- GNATLIBFLAGS = -gnatpg -nostdinc
2020--GNATLIBCFLAGS = -g -O2
2121-+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
2222- # Pretend that _Unwind_GetIPInfo is available for the target by default. This
2323- # should be autodetected during the configuration of libada and passed down to
2424- # here, but we need something for --disable-libada and hope for the best.
2525-@@ -193,7 +193,7 @@ RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
2626- # Link flags used to build gnat tools. By default we prefer to statically
2727- # link with libgcc to avoid a dependency on shared libgcc (which is tricky
2828- # to deal with as it may conflict with the libgcc provided by the system).
2929--GCC_LINK_FLAGS=-static-libgcc
3030-+GCC_LINK_FLAGS=-static-libgcc $(CFLAGS_FOR_TARGET)
3131-3232- # End of variables for you to override.
3333-
···11-This patch fixes interaction with Libtool.
22-See <http://thread.gmane.org/gmane.comp.gcc.patches/258777>, for details.
33-44---- a/gcc/fortran/gfortranspec.c
55-+++ b/gcc/fortran/gfortranspec.c
66-@@ -461,8 +461,15 @@ For more information about these matters, see the file named COPYING\n\n"));
77- {
88- fprintf (stderr, _("Driving:"));
99- for (i = 0; i < g77_newargc; i++)
1010-+ {
1111-+ if (g77_new_decoded_options[i].opt_index == OPT_l)
1212-+ /* Make sure no white space is inserted after `-l'. */
1313-+ fprintf (stderr, " -l%s",
1414-+ g77_new_decoded_options[i].canonical_option[1]);
1515-+ else
1616- fprintf (stderr, " %s",
1717- g77_new_decoded_options[i].orig_option_with_args_text);
1818-+ }
1919- fprintf (stderr, "\n");
2020- }
···11-diff --git a/libada/Makefile.in b/libada/Makefile.in
22-index f5057a0..337e0c6 100644
33---- a/libada/Makefile.in
44-+++ b/libada/Makefile.in
55-@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
66- WARN_CFLAGS = @warn_cflags@
77-88- TARGET_LIBGCC2_CFLAGS=
99--GNATLIBCFLAGS= -g -O2
1010-+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
1111- GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
1212- -DIN_RTS @have_getipinfo@
1313-1414---- a/gcc/ada/gcc-interface/Makefile.in
1515-+++ b/gcc/ada/gcc-interface/Makefile.in
1616-@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
1717- SOME_ADAFLAGS =-gnata
1818- FORCE_DEBUG_ADAFLAGS = -g
1919- GNATLIBFLAGS = -gnatpg -nostdinc
2020--GNATLIBCFLAGS = -g -O2
2121-+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
2222- # Pretend that _Unwind_GetIPInfo is available for the target by default. This
2323- # should be autodetected during the configuration of libada and passed down to
2424- # here, but we need something for --disable-libada and hope for the best.
2525-@@ -193,7 +193,7 @@ RTSDIR = rts$(subst /,_,$(MULTISUBDIR))
2626- # Link flags used to build gnat tools. By default we prefer to statically
2727- # link with libgcc to avoid a dependency on shared libgcc (which is tricky
2828- # to deal with as it may conflict with the libgcc provided by the system).
2929--GCC_LINK_FLAGS=-static-libgcc
3030-+GCC_LINK_FLAGS=-static-libgcc $(CFLAGS_FOR_TARGET)
3131-3232- # End of variables for you to override.
3333-