This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] Fix FCFLAGS handing in libgfortran/configure.ac


The current setup doesn't allow overriding of compile-flags with
setting FCFLAGS.  Fixed by moving needed flags to AM_FCFLAGS.

Ok for mainline/4.0?

Thanks,
Richard.


2005-10-10  Richard Guenther  <rguenther@suse.de>

	* configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
	* configure: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/configure.ac,v
retrieving revision 1.36
diff -c -3 -p -r1.36 configure.ac
*** configure.ac	27 Sep 2005 21:12:48 -0000	1.36
--- configure.ac	11 Oct 2005 13:40:47 -0000
*************** m4_rename([real_PRECIOUS],[_AC_ARG_VAR_P
*** 111,117 ****
  
  # Add -Wall if we are using GCC.
  if test "x$GCC" = "xyes"; then
!   AM_FCFLAGS="-Wall"
    ## We like to use C99 routines when available.  This makes sure that
    ## __STDC_VERSION__ is set such that libc includes make them available.
    AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
--- 111,117 ----
  
  # Add -Wall if we are using GCC.
  if test "x$GCC" = "xyes"; then
!   AM_FCFLAGS="-Wall -fno-repack-arrays -fno-underscoring"
    ## We like to use C99 routines when available.  This makes sure that
    ## __STDC_VERSION__ is set such that libc includes make them available.
    AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
*************** AC_SUBST(enable_static)
*** 139,145 ****
  #AC_PROG_FC(gfortran)
  FC="$GFORTRAN"
  AC_PROG_FC(gfortran)
- FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
  
  # extra LD Flags which are required for targets
  case "${host}" in
--- 139,144 ----


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