summaryrefslogtreecommitdiff
path: root/libc/misc/utmp/Makefile.in
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-24 00:11:21 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-03-24 00:11:21 +0100
commit4da43e9f2e4f2f7593427003e37b87287c7b16cf (patch)
treef03bdf5029acbfec113061385b2bdd7210c5a96a /libc/misc/utmp/Makefile.in
parenteee76e42f32f90af4e64a254810fcb767297fecf (diff)
buildsys: HAS_UTMP (XPG2, SVr4 compat) knob
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/utmp/Makefile.in')
-rw-r--r--libc/misc/utmp/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/utmp/Makefile.in b/libc/misc/utmp/Makefile.in
index 535efb150..715341c85 100644
--- a/libc/misc/utmp/Makefile.in
+++ b/libc/misc/utmp/Makefile.in
@@ -7,7 +7,9 @@
subdirs += libc/misc/utmp
-CSRC-y := utent.c wtent.c
+CSRC-y :=
+CSRC-$(if $(findstring y,$(UCLIBC_HAS_UTMP)$(UCLIBC_HAS_UTMPX)),y) += wtent.c
+CSRC-$(UCLIBC_HAS_UTMP) += utent.c
CSRC-$(UCLIBC_HAS_UTMPX) += utxent.c
MISC_UTMP_DIR := $(top_srcdir)libc/misc/utmp