This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Tweak libgfortran Makefile.am for MinGW


MinGW has a system header called <io.h> (low-level UNIXish I/O
routines).  This conflicts with libgfortran/io/io.h when "io.h" is
included.  The following patch fixes this by using -iquote instead of -I
for libgfortran/io.

Tested on i686-pc-mingw32.

I have a copyright assignment but no CVS access.

2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>

	* Makefile.am (AM_CPPFLAGS): Use -iquote instead of -I.

Index: gcc/libgfortran/Makefile.am
===================================================================
RCS file: /cvsroot/gcc/gcc/libgfortran/Makefile.am,v
retrieving revision 1.17
diff -c -3 -p -r1.17 Makefile.am
*** gcc/libgfortran/Makefile.am	30 Aug 2004 21:34:35 -0000	1.17
--- gcc/libgfortran/Makefile.am	15 Sep 2004 19:16:19 -0000
*************** libgfortran_la_LDFLAGS = -version-info `
*** 12,18 ****
  libgfortranbegin_la_SOURCES = fmain.c
  libgfortranbegin_la_LDFLAGS = -static

! AM_CPPFLAGS = -I$(srcdir)/io

  libgfortranincludedir = $(includedir)/gforio

--- 12,18 ----
  libgfortranbegin_la_SOURCES = fmain.c
  libgfortranbegin_la_LDFLAGS = -static

! AM_CPPFLAGS = -iquote$(srcdir)/io

  libgfortranincludedir = $(includedir)/gforio


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]