This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] Building gnatdll.exe on MinGW32
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Dec 2001 11:51:18 +1100 (EST)
- Subject: [Ada] Building gnatdll.exe on MinGW32
I have successfully bootstrapped gcc with Ada support on on mingw32, but
needed to make following changes to ada/makefile.in and ada/make-lang.in to
build gnatdll.exe.
(These changes are in addition to some minor changes to code to accomodate
current (version 1.1) of mingw project distribution of mingw runtime and
w32api headers. I will submit those after more testing)
I suspect these modification are not the "right way" but hope thay can lead
to something useful.
Rename ada/mdllfile.ad[bs] to ada/mdll-files.ad[bs]
Rename ada/mdlltool.ad[bs] to ada/mdll-tools.ad[bs]
* ada/Make-lang.in (gnatdll$(exeext): Add rule.
* ada/Makefile.in (GNATDLL_OBJS): Change mdllfil.o to mdll-files.o.
Change mdlltool.o to mdll-tools.o.
Although "make gnattools" still refused to make gnatdll.exe, "make
gnatdll.exe" did work after these changes.
Index: ada/Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Make-lang.in,v
retrieving revision 1.7
diff -u -p -r1.7 Make-lang.in
--- Make-lang.in 2001/11/29 16:50:10 1.7
+++ Make-lang.in 2001/12/05 00:28:09
@@ -138,6 +138,12 @@ gnatlbr$(exeext): $(CONFIG_H) prefix.o f
$(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
../gnatlbr$(exeext)
+# Gnatdll is extra tool only used on i386-pe targets
+
+gnatdll$(exeext): $(CONFIG_H) prefix.o force
+ $(MAKE) -C ada $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
+ ../gnatdll$(exeext)
+
# use target-gcc
gnattools: $(GCC_PARTS) force
$(MAKE) $(FLAGS_TO_PASS) $(ADA_FLAGS_TO_PASS) \
Index: ada/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Makefile.in,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile.in
--- Makefile.in 2001/12/01 02:11:25 1.12
+++ Makefile.in 2001/12/05 00:28:20
@@ -755,7 +755,7 @@ GNATDLL_RTL_OBJS = \
s-strops.o s-memory.o s-traceb.o s-unstyp.o system.o
GNATDLL_OBJS = \
- gnatdll.o gnatvsn.o mdll.o mdllfile.o mdlltool.o sdefault.o types.o \
+ gnatdll.o gnatvsn.o mdll.o mdll-files.o mdll-tools.o sdefault.o types.o
\
$(GNATDLL_RTL_OBJS) $(EXTRA_GNATTOOLS_OBJS)
# Convert the target variable into a space separated list of architecture,
http://shopping.yahoo.com.au - Yahoo! Shopping
- Get organised for Christmas early this year!