at master 1.6 kB view raw
1diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in 2index 4e74252bd74..0d848b5b4e3 100644 3--- a/gcc/ada/gcc-interface/Makefile.in 4+++ b/gcc/ada/gcc-interface/Makefile.in 5@@ -111,7 +111,7 @@ NO_OMIT_ADAFLAGS = -fno-omit-frame-pointer 6 NO_SIBLING_ADAFLAGS = -fno-optimize-sibling-calls 7 NO_REORDER_ADAFLAGS = -fno-toplevel-reorder 8 GNATLIBFLAGS = -W -Wall -gnatg -nostdinc 9-GNATLIBCFLAGS = -g -O2 10+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET) 11 # Pretend that _Unwind_GetIPInfo is available for the target by default. This 12 # should be autodetected during the configuration of libada and passed down to 13 # here, but we need something for --disable-libada and hope for the best. 14@@ -198,7 +198,7 @@ RTSDIR = rts$(subst /,_,$(MULTISUBDIR)) 15 # Link flags used to build gnat tools. By default we prefer to statically 16 # link with libgcc to avoid a dependency on shared libgcc (which is tricky 17 # to deal with as it may conflict with the libgcc provided by the system). 18-GCC_LINK_FLAGS=-static-libstdc++ -static-libgcc 19+GCC_LINK_FLAGS=-static-libstdc++ -static-libgcc $(CFLAGS_FOR_TARGET) 20 21 # End of variables for you to override. 22 23diff --git a/libada/Makefile.in b/libada/Makefile.in 24index 522b9207326..ca866c74471 100644 25--- a/libada/Makefile.in 26+++ b/libada/Makefile.in 27@@ -59,7 +59,7 @@ LDFLAGS= 28 CFLAGS=-g 29 PICFLAG = @PICFLAG@ 30 GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc 31-GNATLIBCFLAGS= -g -O2 32+GNATLIBCFLAGS= -g -O2 $(CFLAGS) 33 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \ 34 -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@ 35