Source-Changes-HG archive

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

src: If we are modular, allow us to use modules for compat; don'...



details:   https://anonhg.NetBSD.org/src/rev/af3dccb96d56
branches:  trunk
changeset: 318112:af3dccb96d56
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 12 20:36:59 2018 +0000
description:
If we are modular, allow us to use modules for compat; don't load all the
compat code in.

diffstat:

 sys/compat/common/Makefile.inc |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3fc1cab04ef4 -r af3dccb96d56 sys/compat/common/Makefile.inc
--- a/sys/compat/common/Makefile.inc    Thu Apr 12 19:12:25 2018 +0000
+++ b/sys/compat/common/Makefile.inc    Thu Apr 12 20:36:59 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.23 2017/12/16 08:31:36 maxv Exp $
+#      $NetBSD: Makefile.inc,v 1.24 2018/04/12 20:36:59 christos Exp $
 #
 #      Configuration variables (default values are below):
 #
@@ -17,7 +17,11 @@
 
 # Default values:
 COMPATDST?=            ${.OBJDIR}/lib/compat
+.if !empty(OPT_MODULAR)
+COMPAT_AS?=            library
+.else
 COMPAT_AS?=            obj
+.endif
 COMPATDOTDIR?= ../../.
 
 COMPATDIR=             ${S:S@^.@${COMPATDOTDIR}@:Q}/compat/common



Home | Main Index | Thread Index | Old Index