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

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

[avr-libc-commit] [2470] bug #34719: Use to query for right cross compil


From: Pitchumani
Subject: [avr-libc-commit] [2470] bug #34719: Use to query for right cross compiler instead of checking CC.
Date: Mon, 09 Mar 2015 09:25:50 +0000

Revision: 2470
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2470
Author:   pitchumani
Date:     2015-03-09 09:25:49 +0000 (Mon, 09 Mar 2015)
Log Message:
-----------
bug #34719: Use  to query for right cross compiler instead of checking CC.

Ticket Links:
------------
    http://savannah.gnu.org/bugs/?34719

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

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2015-03-09 06:34:02 UTC (rev 2469)
+++ trunk/avr-libc/ChangeLog    2015-03-09 09:25:49 UTC (rev 2470)
@@ -1,3 +1,9 @@
+2015-03-09  Georg-Johann Lay <address@hidden>
+
+       bug #34719: Check for right build compiler
+       * configure.ac (CC): Use `${CC} -dumpmachine` to query for
+       right cross compiler instead of checking CC.
+
 2015-03-09  Pitchumani Sivanupandi <address@hidden>
 
        bug #44140: wdt_disable() macro clobbers prescaller bits ...

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2015-03-09 06:34:02 UTC (rev 2469)
+++ trunk/avr-libc/NEWS 2015-03-09 09:25:49 UTC (rev 2470)
@@ -2,6 +2,7 @@
 
 * Bugs fixed:
 
+  [#34719] Check for right build compiler
   [#44140] wdt_disable() macro clobbers prescaller bits 
   [no-id] TC_EVACT_FRQ_gc was misspelled as TC_EVACT_FRW_gc in some Xmega
           header files

Modified: trunk/avr-libc/configure.ac
===================================================================
--- trunk/avr-libc/configure.ac 2015-03-09 06:34:02 UTC (rev 2469)
+++ trunk/avr-libc/configure.ac 2015-03-09 09:25:49 UTC (rev 2470)
@@ -145,7 +145,12 @@
 # Make sure that we found the right avr cross-compiler.
 
 case "${CC}" in
-   *avr*gcc*) ;;
+   *gcc*)
+       case "X`${CC} -dumpmachine`X" in
+           XavrX) ;;
+           *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
+       esac
+       ;;
    *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
 esac
 case "${AS}" in




reply via email to

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