[Ada] Building gnatdll.exe on MinGW32
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Sun Dec 9 15:23:00 GMT 2001
--- obry@gnat.com wrote: >
> Danny,
>
> > > So this seems to be a Makefile issue.
>
> > Yes.
>
> Ok, I'm not a Makefile expert but I think that the rules for mdllfile.o
> and
> mdlltool.o should be put into ada/Makefile.in. Make-lang.in is integrated
> into the main GCC makefile which is not the place for these rules.
>
Here is an updated patch. mdll.o also needs -gnatk8 flag.
Changelog
2001-12-10 Danny Smith <dannysmith@uswers.sourceforge.net>
* ada/Make-lang.in (gnatdll$(exeext)): Add rule.
* ada/Makefile.in (mdll.o, mdllfile.o, mdlltool.o): Add rules,
using -gnatk8 flag.
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/09 23:13:48
@@ -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.17
diff -u -p -r1.17 Makefile.in
--- Makefile.in 2001/12/05 20:34:43 1.17
+++ Makefile.in 2001/12/09 23:14:01
@@ -1493,6 +1493,19 @@ ifeq ($(strip $(filter-out cygwin32% min
# ??? work around a gcc -O3 bug on x86
a-numaux.o : a-numaux.adb a-numaux.ads
$(ADAC) -c $(ALL_ADAFLAGS) -O2 $(ADA_INCLUDES) $<
+
+# krunch filenames
+
+mdll.o : mdll.adb mdll.ads
+ $(ADAC) -c $(ALL_ADAFLAGS) -gnatk8 $(ADA_INCLUDES) $<
+
+mdllfile.o : mdllfile.adb mdllfile.ads
+ $(ADAC) -c $(ALL_ADAFLAGS) -gnatk8 $(ADA_INCLUDES) $<
+
+mdlltool.o : mdlltool.adb mdlltool.ads
+ $(ADAC) -c $(ALL_ADAFLAGS) -gnatk8 $(ADA_INCLUDES) $<
+
+
endif
# The runtime library for gnat comprises two directories. One contains the
http://shopping.yahoo.com.au - Yahoo! Shopping
- Free CDs for thousands of Priority Shoppers!
More information about the Gcc-patches
mailing list