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: [PATCH][DRIVER] Wrong C++ include paths when configuring with "--with-sysroot=/"


Hi,

(Sorry for the delay I'm just back from a long sick leave)

>> There is this old patch submitted by Matthias on that same issue, if
>> its logic is the right one for you Joseph I can rebase/validate it
>> Joseph.
>>
>> https://gcc.gnu.org/ml/gcc-patches/2012-02/msg00320.html
>
> Yes, that seems better.

I've rebased the patch on trunk, bootstrap is ok and when configuring
with options:
"--with-sysroot=/ --with-gxx-include-dir=/usr/include/c++/4.9.2"
gcc_gxx_include_dir keeps its leading slash.

Is it ok for trunk ?

Thanks,
Yvan


2015-07-15  Yvan Roux  <yvan.roux@linaro.org>
                  Matthias Klose  <doko@ubuntu.com>

       * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
       build-sysroot, sysroot from the `Miscenalleous configure options'
       to the `Directories' section and strip trailing `/' from with_sysroot.
       (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
       * configure: Regenerated.

Attachment: sysroot-path.diff
Description: Text document


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