This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] GNU/k*BSD support (with ChangeLog) for gcc
- From: Robert Millan <zeratul2 at wanadoo dot es>
- To: David O'Brien <obrien at FreeBSD dot org>
- Cc: gcc-patches at gcc dot gnu dot org, glibc-bsd-hackers at nongnu dot org
- Date: Sat, 20 Mar 2004 13:57:04 +0100
- Subject: Re: [PATCH] GNU/k*BSD support (with ChangeLog) for gcc
- Organisation: free as in freedom
- References: <20040315022155.GA2370@aragorn> <20040319161313.GA97754@dragon.nuxi.com>
On Fri, Mar 19, 2004 at 08:13:14AM -0800, David O'Brien wrote:
> > -#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
> > +#define LINK_SPEC "-m " LINK_EMULATION " %{shared:-shared} \
>
> Rather than depend on ANSI-C string concatenation, why not do it right
> and create %(link_emulation).
>
> > - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
> > + %{!dynamic-linker:-dynamic-linker " LINK_LDPATH "}} \
>
> Ditto. See how I already implemented this in gcc/config/freebsd-spec.h
> and gcc/config/i386/freebsd.h with %(fbsd_dynamic_linker). We could
> easily change this to just %(dynamic_linker) for constancy w/in GCC.
Ok. I'll wait untill the __FreeBSD_kernel__ part of my patch is clarified
to submit a new one.
--
Robert Millan
"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."
-- J.R.R.T., Ainulindale (Silmarillion)