URL:
  <http://savannah.nongnu.org/bugs/?34719>

                 Summary: Check for right build compiler
                 Project: AVR C Runtime Library
            Submitted by: gjlayde
            Submitted on: Di 01 Nov 2011 17:08:53 GMT
                Category: Build Infrastructure
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build system
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.*
           Fixed Release: None

    _______________________________________________________

Details:

As outlined in

http://www.mikrocontroller.net/topic/236837#2402619

the search policy for the build compiler has to be checkes:

1) CC
2) --prefix
3) PATH

Moreover there is a proposed patch

        * configure.ac (CC): Use `${CC} -dumpmachine` to query for
        right cross compiler instead of checking CC.

Index: configure.ac
===================================================================
--- configure.ac        (revision 2259)
+++ configure.ac        (working copy)
@@ -146,7 +146,12 @@ AC_CHECK_TOOL(AR, ar, ar)
 # 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 to this item at:

  <http://savannah.nongnu.org/bugs/?34719>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to