This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Re: -Bprefix


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


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