This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
crt0 location
- From: "Paulo J. Matos" <paulo at matos-sorge dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 24 Aug 2011 14:32:33 +0100
- Subject: crt0 location
Hi all,
Mostly in my work I have several versions of cross gcc for our own port
compiled in a directory. When I test the compilers I need to provide a
libc (usually uclibc) and a crt0. Previously the crt0 was being copied
to the compiler directory for it to be found however we have made those
directories read-only. How can I tell GCC during runtime where the
crt0.o is?
I have found out that -Bdir-to-crt0/ works. I am wondering if this is
the right option to use or there's a better way?
Cheers,
--
PMatos