summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.mk
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-10-15 14:32:26 +0000
committerphk <phk@FreeBSD.org>1995-10-15 14:32:26 +0000
commit62c5f3cfd40ad6cdfebc7622b5778e23afe7f2d2 (patch)
tree6c592dda3c3c47397502d96f1a642d9dfbc3384c /share/mk/bsd.kmod.mk
parent1852092e180f76b600e82beedab2e8fb5746f389 (diff)
downloadFreeBSD-src-62c5f3cfd40ad6cdfebc7622b5778e23afe7f2d2.zip
FreeBSD-src-62c5f3cfd40ad6cdfebc7622b5778e23afe7f2d2.tar.gz
Make a rule for cleaning the namelist of lkms.
TXT & DATA symbols not explicitly mentioned will be made local.
Diffstat (limited to 'share/mk/bsd.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index c108e48..e84a2c6 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.11 1995/03/20 19:18:51 wollman Exp $
+# $Id: bsd.kmod.mk,v 1.12 1995/10/02 20:01:43 wollman Exp $
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
@@ -36,7 +36,14 @@ PROG= ${KMOD}.o
.endif
${PROG}: ${DPSRCS} ${OBJS} ${DPADD}
- ${LD} -r ${LDFLAGS} -o ${.TARGET} ${OBJS}
+ ${LD} -r ${LDFLAGS} -o tmp.o ${OBJS}
+.if defined(EXPORT_SYMS)
+ @rm -f symb.tmp
+ @for i in ${EXPORT_SYMS} ; do echo $$i >> symb.tmp ; done
+ symorder -c symb.tmp tmp.o
+ @rm -f symb.tmp
+.endif
+ mv tmp.o ${.TARGET}
.if !defined(MAN1) && !defined(MAN2) && !defined(MAN3) && \
!defined(MAN4) && !defined(MAN5) && !defined(MAN6) && \
OpenPOWER on IntegriCloud