This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Exclude /lib and /usr/lib from the library search path
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 8 Sep 2014 16:25:20 -0700
- Subject: Exclude /lib and /usr/lib from the library search path
- Authentication-results: sourceware.org; auth=none
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
Hi. I'd like to exclude /lib and /usr/lib from the library search
path, but still include the GCC-specific library directories
($prefix/lib/gcc/...) and $prefix/lib (the --prefix that GCC was
configured with). I'd be happy with either a solution either at the
time of compiling GCC, or when running GCC. I think that --sysroot
should accomplish this, but when I run gcc with --sysroot, I get the
error that "ld: this linker was not configured to use sysroots".
Thanks,
Shaun
http://sjackman.ca