This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Specify the search directory for crti.o
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 6 Feb 2015 11:33:36 -0800
- Subject: Specify the search directory for crti.o
- Authentication-results: sourceware.org; auth=none
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
I'd like to specify the search directory for the startfile and
endfile, crt1.o, crti.o and crtn.o. Passing -B on the command line to
the GCC driver works, but is inconvenient. How do I modify the specs
file to specify the search path for startfile?
I tried adding the -B option to the startfile spec and got the error:
ld: unrecognized option '-B/gsc/btl/linuxbrew/lib'
I then tried adding the -B option to the cc1 spec and got the error:
cc1: error: command line option '-B/gsc/btl/linuxbrew/lib' is valid
for the driver but not for C
If it's not possible to do this via the specs file, is there a
configure option to GCC that accomplished the same goal?
Thanks,
Shaun
http://sjackman.ca