This is the mail archive of the gcc-patches@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: RFC: Permit relative path for --with-gxx-include-dir


Daniel Jacobowitz wrote:

>> This patch makes it possible to specify a relative path, instead of an
>> absolute path.  If a relative path is provided, the path is relative
>> to $prefix.  I haven't yet fully tested this patch on mainline (though
>> I have tested it on 4.1 and 4.2).  I plan to do that testing, and
>> check in the patch, but I wanted to give a chance for people to
>> comment.  Any objections?  (I won't check this in for at least 24
>> hours, to give people a chance to comment.)
> 
> I thought the usual practice was to specify --with-foo='${prefix}'/bar
> directly.  At least, I know I've done that before.

I guess that would work -- but why make users do that?  That seems even
more arcane, and potentially susceptible to vagaries of exactly how the
variable is used in the Makefiles, etc.  Putting the quoting into the
libstdc++ configure script seems to allow the user to specify a more
obvious form, and allows the libstdc++ scripts to process the option as
necessary.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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