This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] fix use of PICFLAG for Ada library variants
On Thu, Jun 14, 2012 at 07:17:24PM +0200, Olivier Hainque wrote:
>
> On Jun 14, 2012, at 19:00 , Jakub Jelinek wrote:
> > For reverting it is too late, 4.7.1 has been released already with the bug.
>
> > I'm already bootstrapping/regtesting the simple one-liner, if it works, will
> > post it.
>
> Thanks. So sorry again :-(
Here is what I've committed as obvious after bootstrap/regtest on
x86_64-linux.
2012-06-14 Jakub Jelinek <jakub@redhat.com>
* gcc-interface/Makefile.in (gnatlib-shared-default): Append
$(PICFLAG_FOR_TARGET) to GNATLIBCFLAGS_FOR_C passed to submake.
--- gcc/ada/gcc-interface/Makefile.in.jj 2012-06-14 15:41:05.000000000 +0200
+++ gcc/ada/gcc-interface/Makefile.in 2012-06-14 18:23:03.540294763 +0200
@@ -2597,7 +2597,7 @@ gnatlib-shared-default:
$(MAKE) $(FLAGS_TO_PASS) \
GNATLIBFLAGS="$(GNATLIBFLAGS)" \
GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(PICFLAG_FOR_TARGET)" \
- GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C)" \
+ GNATLIBCFLAGS_FOR_C="$(GNATLIBCFLAGS_FOR_C) $(PICFLAG_FOR_TARGET)" \
MULTISUBDIR="$(MULTISUBDIR)" \
THREAD_KIND="$(THREAD_KIND)" \
gnatlib
Jakub