[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #34719] Check for right build compiler
From: |
Georg-Johann Lay |
Subject: |
[avr-libc-dev] [bug #34719] Check for right build compiler |
Date: |
Tue, 01 Nov 2011 17:08:54 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #34719] Check for right build compiler,
Georg-Johann Lay <=