This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[CT-NG:patch 04/19] Update check for need of g++


g++ is only needed when building additonal libs on the HOST,
so check wheter g++ is available for the HOST compiler only

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
 scripts/crosstool-NG.sh.in |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: crosstool-ng/scripts/crosstool-NG.sh.in
===================================================================
--- crosstool-ng.orig/scripts/crosstool-NG.sh.in
+++ crosstool-ng/scripts/crosstool-NG.sh.in
@@ -416,11 +416,15 @@ if [ -z "${CT_RESTART}" ]; then
             else
                 case "${tool}" in
                     # We'll at least need some of them...
-                    ar|as|gcc|g++|ld|nm|objcopy|objdump|ranlib)
+                    ar|as|gcc|ld|nm|objcopy|objdump|ranlib)
                         CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!"
                         ;;
                     # Some are conditionnally required
                     # Add them in alphabetical (C locale) ordering
+		    #g++ (needed for companion lib), only needed for HOST
+		    g++)
+			CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${m}" = "HOST"
+			;;
                     gcj)
                         CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"
                         ;;

-- 


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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