This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] fix lib and tools build
- From: Laurent Guerby <guerby at acm dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 30 Mar 2002 23:19:00 +0100
- Subject: [Ada] fix lib and tools build
Looks like adding a magic VPATH makes gnatlib_and_tools happy and working
(don't ask me why, I just don't understand how it works, I tried
randomly to apply Andreas ideas).
gnatmem does not build without libaddr2line, since we have no autoconf
for it, it's probably safer to comment it.
Ok to apply? (if 3.1 branch I assume I have to cvs co -rgcc-3_0-branch
in a separate tree before commit, inform me otherwise I have
never used branches before :)
--
Laurent Guerby <guerby@acm.org>
2002-03-30 Laurent Guerby <guerby@acm.org>
* Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
* Makefile.in (gnattools3): Comment out, gnatmem does not build without
libaddr2line.
diff -c -3 -p -r1.26 Makefile.in
*** Makefile.in 2002/03/29 16:10:04 1.26
--- Makefile.in 2002/03/30 21:58:33
*************** TOOLS_FLAGS_TO_PASS= \
*** 1593,1598 ****
--- 1593,1599 ----
"libsubdir=$(libsubdir)" \
"exeext=$(exeext)" \
"srcdir=$(fsrcdir)" \
+ "VPATH=$(fsrcdir)" \
"TOOLS_LIBS=$(TOOLS_LIBS) $(TGT_LIB)" \
"GNATMAKE=$(GNATMAKE)" \
"GNATLINK=$(GNATLINK)" \
*************** gnattools2: ../stamp-tools
*** 1660,1668 ****
# These tools are only built for the native version.
gnattools3: ../stamp-tools
! $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
! TOOLSCASE=native \
! top_builddir=../.. ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
../../gnatchop$(exeext):
$(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"
--- 1661,1669 ----
# These tools are only built for the native version.
gnattools3: ../stamp-tools
! # $(MAKE) -C tools -f ../Makefile $(TOOLS_FLAGS_TO_PASS) \
! # TOOLSCASE=native \
! # top_builddir=../.. ../../gnatmem$(exeext) $(EXTRA_GNATTOOLS)
../../gnatchop$(exeext):
$(GNATMAKE) -c $(ADA_INCLUDES) gnatchop --GCC="$(CC) $(ALL_ADAFLAGS)"