Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Define a command to generate relocatable objects us...
details: https://anonhg.NetBSD.org/src/rev/11b1f1b8f1f0
branches: trunk
changeset: 332791:11b1f1b8f1f0
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Oct 09 16:35:57 2014 +0000
description:
Define a command to generate relocatable objects using ld -r.
diffstat:
sys/conf/Makefile.kern.inc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 2c34a622f44f -r 11b1f1b8f1f0 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Thu Oct 09 16:08:36 2014 +0000
+++ b/sys/conf/Makefile.kern.inc Thu Oct 09 16:35:57 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.174 2014/09/20 19:22:09 matt Exp $
+# $NetBSD: Makefile.kern.inc,v 1.175 2014/10/09 16:35:57 uebayasi Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -156,6 +156,12 @@
${_MKSHECHO}\
${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $< && \
${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $<
+
+# link rules:
+LINK_O?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}" && \
+ ${_MKSHECHO}\
+ ${LD} -r -o ${.TARGET} ${.ALLSRC} && \
+ ${LD} -r -o ${.TARGET} ${.ALLSRC}
##
## (3) libkern and compat
Home |
Main Index |
Thread Index |
Old Index