]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For riscv kernel builds, add -N to LDFLAGS instead of replacing the
authorIan Lepore <ian@FreeBSD.org>
Wed, 25 Dec 2019 17:26:51 +0000 (17:26 +0000)
committerIan Lepore <ian@FreeBSD.org>
Wed, 25 Dec 2019 17:26:51 +0000 (17:26 +0000)
commit0b15fc2993f5c41a65da26f4bbceef9a86be3d48
treea15b01771fb468445d0cf7cda0fe6e0cf2ebb540
parente9305818c1ba2762ec0ac40294cde0a4b96806c7
For riscv kernel builds, add -N to LDFLAGS instead of replacing the
SYSTEM_LD variable.  This avoids duplicating the contents of SYSTEM_LD
from kern.pre.mk just to add the -N flag to it.  If the basic linker command
ever needs to be changed, this will be one less place that has to be found
and fixed.

Some testing by kp@ indicates that the -N flag may not be needed at all,
so a comment to that effect is also added, and the -N flag may be removed
in a followup commit.

Differential Revision: https://reviews.freebsd.org/D22920
sys/conf/Makefile.riscv