tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: proper way to add additional linker flags for kernel link
On Mon, May 26, 2014 at 08:54:13AM -0700, Matt Thomas wrote:
>
> On May 26, 2014, at 6:36 AM, Tyler Retzlaff
> <list%omicron-persei-8.net@localhost> wrote:
>
> > What is the correct way to pass additional flags to the linker for linking
> > the kernel?
> >
> > A brief look at src/sys/conf/Makefile.kern.inc seems to suggest
> > LINKFLAGS_NORMAL+=<flags>
> > will be useful but does not emit the additional flags at all. Further,
> > LINKFLAGS+=<flags>
> > seems to corrupt entirely the normal flags passed.
> >
> > Is there a "right" way to do this?
>
> EXTRA_LINKFLAGS
Ah, I ended up editing the Makefile and changing EXTRA_LINKFLAGS to do this
directly in
the end. So I guess not tunable from e.g. /etc/mk.conf since
EXTRA_LINKFLAGS is '=' not '?=' in sys/${MACHINE}/conf/Makefile.${MACHINE}
Thanks
Home |
Main Index |
Thread Index |
Old Index