This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to change '%D' (from specs file)
- From: Frank Cusack <fcusack at fcusack dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 27 Dec 2003 10:58:23 -0800
- Subject: How to change '%D' (from specs file)
Hi,
How can I influence the value of %D? I configured with --exec-prefix=/usr/pkg
on sparc-sun-solaris2.9 and %D is (apparently)
-L/usr/pkg/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2 -L/usr/ccs/bin
-L/usr/ccs/lib -L/usr/pkg/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/../../..
I could just swap out %D in the specs file with what I really want, but
I'd prefer to find a (preferably) configure- or run-time (but not a command
option) to change this. One reason not to mess with it is because I don't
want to write a proper spec string for multilib support. :-)
%D comes in for link_libgcc. So IMHO /usr/ccs/* shouldn't be there, and
the last bit finds /usr/pkg/lib which is messing up for shared libraries
that are in there which have a different interface (but the same name)
than what's in /usr/lib. Or, if there's a shared lib there but not in
/usr/lib, I don't want it found at link time unless I explicitly pass
-L and -R options; I'd rather have ld give an error.
thanks
/fc