This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Bprefix
- From: Ian Lance Taylor <iant at google dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Apr 2011 10:54:32 -0700
- Subject: Re: -Bprefix
- References: <BANLkTi=fLAppJF0iKk=r0epmL25MeKCuxQ@mail.gmail.com>
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