comparison native-compiler.sh @ 1130:c222ae88733a

Add NO_CPLUSPLUS config option, to skip c++ support entirely.
author Rob Landley <rob@landley.net>
date Sun, 20 Jun 2010 16:25:35 -0500
parents affef1edbdba
children 4021fb1183d7
comparison
equal deleted inserted replaced
1129:3c8d91339f2a 1130:c222ae88733a
40 # Tell future packages to link against the libraries in the new compiler, 40 # Tell future packages to link against the libraries in the new compiler,
41 # rather than the ones in the simple compiler. 41 # rather than the ones in the simple compiler.
42 42
43 export "$(echo $ARCH | sed 's/-/_/g')"_CCWRAP_TOPDIR="$STAGE_DIR" 43 export "$(echo $ARCH | sed 's/-/_/g')"_CCWRAP_TOPDIR="$STAGE_DIR"
44 44
45 build_section uClibc++ 45 # Add C++ standard library
46
47 [ -z "$NO_CPLUSPLUS" ] && build_section uClibc++
46 48
47 # For a native compiler, build make, bash, and distcc. (Yes, this is an old 49 # For a native compiler, build make, bash, and distcc. (Yes, this is an old
48 # version of Bash. It's intentional.) 50 # version of Bash. It's intentional.)
49 51
50 if [ "$HOST_ARCH" == "$ARCH" ] 52 if [ "$HOST_ARCH" == "$ARCH" ]