Building libstdc++-v3 fails (enable_cxx_flags)

Daniel Jacobowitz drow@mvista.com
Mon Dec 30 09:54:00 GMT 2002


On Mon, Dec 30, 2002 at 10:27:20AM -0500, Daniel Jacobowitz wrote:
> Using a tree updated "mere moments" ago:
> 
> checking for exception model to use... call frame
> checking for use of libunwind... no
> checking for extra compiler flags for building... configure: error: compiler flags start with a -
> 
> Does this look familiar?  It's $enable_cxx_flags; I can't figure out from my
> build directory what value it has...

To be more precise:
  - I did not specify --enable-cxx-flags
  - $enable_cxx_flags has the value "none" at this point, by the test
    -n.

Look at the expansion in configure:

if test "${enable_cxx_flags+set}" = set; then
  enableval="$enable_cxx_flags"
  case "x$enable_cxx_flags" in
  xyes)
    { echo "configure: error: --enable-cxx-flags needs compiler flags as arguments" 1>&2; exit 1; } ;;
  xno | xnone | x)
    enable_cxx_flags='' ;;
  *)
    enable_cxx_flags="$enableval" ;;
esac
else
  enable_cxx_flags=none
fi

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc mailing list