summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-19 19:16:37 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-19 19:23:21 +0200
commitd87cc4d9a6945daf48848022c93d0d9a0489a87e (patch)
tree66cf7de8d927e0b3068bd949c39633d5fc33ba6a /libc
parent6630ac965279ed2a76394fbad8fd861f275ed24c (diff)
create empty static files conditionally
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/Makefile.in b/libc/Makefile.in
index 85986a7e9..714a66ea8 100644
--- a/libc/Makefile.in
+++ b/libc/Makefile.in
@@ -42,9 +42,9 @@ else
libc-a-y = $(libc-y) $(libc-static-y)
endif
-libc-a-y += $(libnsl-a-y)
-libc-a-y += $(libresolv-a-y)
-libc-a-y += $(libm-a-y)
+libc-a-$(DO_C99_MATH) += $(libm-a-y)
+libc-a-$(UCLIBC_HAS_LIBNSL_STUB) += $(libnsl-a-y)
+libc-a-$(UCLIBC_HAS_LIBRESOLV_STUB) += $(libresolv-a-y)
libc-a-$(UCLIBC_HAS_LIBUTIL) += $(libutil-a-y)
libc-a-$(UCLIBC_HAS_CRYPT) += $(libcrypt-a-y)
libc-a-$(UCLIBC_HAS_ARGP) += $(libuargp-a-y)
@@ -55,10 +55,10 @@ libc-a-$(UCLIBC_HAS_BACKTRACE) += $(libubacktrace-a-y)
libc-so-y = $(libc-y:.o=.os) $(libc-shared-y)
-libc-so-y += $(libnsl-so-y)
-libc-so-y += $(libresolv-so-y)
libc-so-y += $(libdl-so-y)
-libc-so-y += $(libm-so-y)
+libc-so-$(DO_C99_MATH) += $(libm-so-y)
+libc-so-$(UCLIBC_HAS_LIBNSL_STUB) += $(libnsl-so-y)
+libc-so-$(UCLIBC_HAS_LIBRESOLV_STUB) += $(libresolv-so-y)
libc-so-$(UCLIBC_HAS_LIBUTIL) += $(libutil-so-y)
libc-so-$(UCLIBC_HAS_CRYPT) += $(libcrypt-so-y)
libc-so-$(UCLIBC_HAS_ARGP) += $(libuargp-so-y)