avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] [2195] 2010-11-22 Eric B.


From: Eric Weddington
Subject: [avr-libc-commit] [2195] 2010-11-22 Eric B.
Date: Mon, 22 Nov 2010 23:20:13 +0000

Revision: 2195
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2195
Author:   arcanum
Date:     2010-11-22 23:20:11 +0000 (Mon, 22 Nov 2010)
Log Message:
-----------
2010-11-22  Eric B. Weddington  <address@hidden>

    * configure.ac: Fix 2.64 cross compile detection for AVR by not trying to
    compile fopen. This fix came from Newlib's config/override.m4. For some
    reason autoconf 2.64 (and possibly above) puts in a check for the compiler
    output file extension and creates a test program that has the fopen
    function. Of course, this fails when avr-gcc is used to compile the test
    program.

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/configure.ac

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2010-11-16 15:10:51 UTC (rev 2194)
+++ trunk/avr-libc/ChangeLog    2010-11-22 23:20:11 UTC (rev 2195)
@@ -1,3 +1,12 @@
+2010-11-22  Eric B. Weddington  <address@hidden>
+
+    * configure.ac: Fix 2.64 cross compile detection for AVR by not trying to
+    compile fopen. This fix came from Newlib's config/override.m4. For some
+    reason autoconf 2.64 (and possibly above) puts in a check for the compiler
+    output file extension and creates a test program that has the fopen
+    function. Of course, this fails when avr-gcc is used to compile the test
+    program.
+
 2010-11-16  Eric B. Weddington  <address@hidden>
 
        Fix Atmel bug #12536.

Modified: trunk/avr-libc/configure.ac
===================================================================
--- trunk/avr-libc/configure.ac 2010-11-16 15:10:51 UTC (rev 2194)
+++ trunk/avr-libc/configure.ac 2010-11-22 23:20:11 UTC (rev 2195)
@@ -126,6 +126,14 @@
 # of this when we're building the libs.
 CFLAGS=""
 
+
+dnl This fix is from Newlib in config/override.m4.
+dnl Fix 2.64 cross compile detection for AVR by not trying to compile fopen.
+m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],
+  [m4_foreach([_GCC_LANG], [C, C++, Fortran, Fortran 77],
+     [m4_define([_AC_LANG_IO_PROGRAM(]_GCC_LANG[)], 
m4_defn([AC_LANG_PROGRAM(]_GCC_LANG[)]))])])
+
+
 # Checks for programs.
 
 AC_PROG_CC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]