tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

proper way to add additional linker flags for kernel link



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?

Thanks


Home | Main Index | Thread Index | Old Index