Module Name: src Committed By: christos Date: Thu Apr 12 20:37:00 UTC 2018
Modified Files: src/sys/compat/common: Makefile.inc Log Message: If we are modular, allow us to use modules for compat; don't load all the compat code in. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/compat/common/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/common/Makefile.inc diff -u src/sys/compat/common/Makefile.inc:1.23 src/sys/compat/common/Makefile.inc:1.24 --- src/sys/compat/common/Makefile.inc:1.23 Sat Dec 16 03:31:36 2017 +++ src/sys/compat/common/Makefile.inc Thu Apr 12 16:36:59 2018 @@ -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