This is the mail archive of the 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 <>
 scripts/ |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: crosstool-ng/scripts/
--- crosstool-ng.orig/scripts/
+++ crosstool-ng/scripts/
@@ -416,11 +416,15 @@ if [ -z "${CT_RESTART}" ]; then
                 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"
+			;;
                         CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"


For unsubscribe information see

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