2009-12-21 07:49:59 +00:00
|
|
|
diff --git a/libada/Makefile.in b/libada/Makefile.in
|
|
|
|
index f5057a0..337e0c6 100644
|
|
|
|
--- a/libada/Makefile.in
|
|
|
|
+++ b/libada/Makefile.in
|
|
|
|
@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
|
|
|
|
WARN_CFLAGS = @warn_cflags@
|
|
|
|
|
|
|
|
TARGET_LIBGCC2_CFLAGS=
|
|
|
|
-GNATLIBCFLAGS= -g -O2
|
|
|
|
+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
|
2010-01-27 13:43:23 +00:00
|
|
|
GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
|
|
|
|
-DIN_RTS @have_getipinfo@
|
2009-12-21 07:49:59 +00:00
|
|
|
|
|
|
|
--- a/gcc/ada/gcc-interface/Makefile.in
|
|
|
|
+++ b/gcc/ada/gcc-interface/Makefile.in
|
|
|
|
@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
|
|
|
|
SOME_ADAFLAGS =-gnata
|
|
|
|
FORCE_DEBUG_ADAFLAGS = -g
|
|
|
|
GNATLIBFLAGS = -gnatpg -nostdinc
|
|
|
|
-GNATLIBCFLAGS = -g -O2
|
|
|
|
+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
|
2010-01-27 08:30:56 +00:00
|
|
|
# Pretend that _Unwind_GetIPInfo is available for the target by default. This
|
|
|
|
# should be autodetected during the configuration of libada and passed down to
|
|
|
|
# here, but we need something for --disable-libada and hope for the best.
|
2009-12-21 07:49:59 +00:00
|
|
|
@@ -1838,7 +1838,7 @@ ADA_INCLUDE_SRCS =\
|
|
|
|
|
|
|
|
LIBGNAT=../$(RTSDIR)/libgnat.a
|
|
|
|
|
|
|
|
-GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
|
|
|
|
+GCC_LINK=$(CC) -static-libgcc $(CFLAGS_FOR_TARGET) $(ADA_INCLUDES)
|
|
|
|
|
|
|
|
# when compiling the tools, the runtime has to be first on the path so that
|
|
|
|
# it hides the runtime files lying with the rest of the sources
|