This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why target program depends from system GCC
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: niXman <i dot nixman at autistici dot org>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 9 Nov 2014 18:07:29 +0000
- Subject: Re: Why target program depends from system GCC
- Authentication-results: sourceware.org; auth=none
- References: <f06b750a6154b5d001a592d749e302af at autistici dot org>
On 9 November 2014 17:13, niXman wrote:
>
> Hi,
>
> I have built & installed GCC-4.9.2 in '/usr/local'.
> When I build some program, it depends from libstdc++ provided by system, but
> not installed GCC-4.9.2. Why?
Because you didn't say you wanted something different, so the dynamic
linker looks in the normal places it looks to find library
dependencies.
https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths