aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-25 20:03:19 +0200
committerDuncaen <mail@duncano.de>2017-05-25 20:07:08 +0200
commit55400084a14677962b498c0ceda971d0c5736d12 (patch)
tree93c94e810b41cdf910a0b8773ac88e2b7b2ee18a
parent4f82162df84f734db1215baf3a0a52e7d91f6a1c (diff)
downloadlobase-55400084a14677962b498c0ceda971d0c5736d12.tar.gz
lib/libopenbsd: fix building optional objects
-rw-r--r--lib/libopenbsd/stdio/Makefile.inc2
-rw-r--r--lib/libopenbsd/stdlib/Makefile.inc2
-rw-r--r--lib/libopenbsd/string/Makefile.inc2
-rw-r--r--lib/libopenbsd/sys/Makefile.inc2
4 files changed, 8 insertions, 0 deletions
diff --git a/lib/libopenbsd/stdio/Makefile.inc b/lib/libopenbsd/stdio/Makefile.inc
index d7024fa..248c12c 100644
--- a/lib/libopenbsd/stdio/Makefile.inc
+++ b/lib/libopenbsd/stdio/Makefile.inc
@@ -5,6 +5,8 @@ VPATH+= ${LIBCSRCDIR}/stdio
SRCS+= fgetwln.c
+include ${.TOPDIR}/config.mk
+
ifneq ($(HAVE_FGETLN),1)
SRCS+= fgetln.c
endif
diff --git a/lib/libopenbsd/stdlib/Makefile.inc b/lib/libopenbsd/stdlib/Makefile.inc
index c71a22b..01c6c5f 100644
--- a/lib/libopenbsd/stdlib/Makefile.inc
+++ b/lib/libopenbsd/stdlib/Makefile.inc
@@ -6,6 +6,8 @@ VPATH+= ${LIBCSRCDIR}/stdlib
SRCS+= getopt_long.c
MAN+= getopt.3 getopt_long.3
+include ${.TOPDIR}/config.mk
+
ifneq ($(HAVE_FREEZERO),1)
SRCS+= freezero.c
endif
diff --git a/lib/libopenbsd/string/Makefile.inc b/lib/libopenbsd/string/Makefile.inc
index bb131ac..1985db1 100644
--- a/lib/libopenbsd/string/Makefile.inc
+++ b/lib/libopenbsd/string/Makefile.inc
@@ -6,6 +6,8 @@ VPATH+= ${LIBCSRCDIR}/string
SRCS+= timingsafe_bcmp.c timingsafe_memcmp.c
MAN+= timingsafe_bcmp.3
+include ${.TOPDIR}/config.mk
+
ifneq ($(HAVE_EXPLICIT_BZERO),1)
SRCS+= explicit_bzero.c
endif
diff --git a/lib/libopenbsd/sys/Makefile.inc b/lib/libopenbsd/sys/Makefile.inc
index d18ff08..bb60876 100644
--- a/lib/libopenbsd/sys/Makefile.inc
+++ b/lib/libopenbsd/sys/Makefile.inc
@@ -5,6 +5,8 @@
# sys sources
VPATH+= ${LIBCSRCDIR}/sys
+include ${.TOPDIR}/config.mk
+
ifneq ($(HAVE_GETFSSTAT),1)
SRCS+= getfsstat.c
SRCS+= statfs.c