-Bprefix

Ian Lance Taylor iant@google.com
Mon Apr 25 18:48:00 GMT 2011


ali hagigat <hagigatali@gmail.com> writes:

> 3.14 Options for Directory Search
> -Bprefix
> variable.
> The compiler will check to see if the path provided by the ‘-B’ refers to a
> directory, and if necessary it will add a directory separator
> character at the end
> of the path.
> -----------------------------------------------
> I have copied part of gcc manual. What it is trying to say? Can path
> provided by -B not a directory?
> What does it mean?

-B need not be a directory.  -B is a string prefix.  For convenience,
because the -B option is most commonly used with a directory, gcc will
add a trailing '/' when the -B option names a directory.  Otherwise,
since -B is a string prefix, you would have to add the trailing '/'
yourself when using -B.

Ian



More information about the Gcc-help mailing list