summaryrefslogtreecommitdiff
path: root/libc/inet/Makefile.in
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-07-13 00:30:56 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-08-26 09:29:54 +0200
commit120d4100b5a4ba3a48ff700c0bdb6ae1d0b01f83 (patch)
treed5a001091d6f3c7c7777f658eb5978f450aac867 /libc/inet/Makefile.in
parent77fbcc8440c28ea30ebf5a38c7be1d0c7b080772 (diff)
inet: build all res_* and ns_* functions conditionally
This patch changes the build system so that all DNS resolver related functions (ie, those starting with dn_, ns_ and res_) are only built if UCLIBC_HAS_RESOLVER_SUPPORT is set. This means that the libc will lack support for things that existed in the library before unless this new config option is set. On the other hand, if users really need support for resolver functions, they now get a more complete set, and the library is smaller than before it is deselected. Signed-off-by: Daniel Mack <zonque@gmail.com>
Diffstat (limited to 'libc/inet/Makefile.in')
-rw-r--r--libc/inet/Makefile.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/inet/Makefile.in b/libc/inet/Makefile.in
index 09ba65d1a..a4d3c49e6 100644
--- a/libc/inet/Makefile.in
+++ b/libc/inet/Makefile.in
@@ -37,11 +37,10 @@ CSRC-$(findstring y,$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6)) += \
get_hosts_byaddr_r.c get_hosts_byname_r.c \
gethostbyaddr_r.c gethostbyname_r.c gethostbyname2_r.c \
gethostbyaddr.c gethostbyname.c gethostbyname2.c
-CSRC-$(findstring y,$(UCLIBC_HAS_IPV4)$(UCLIBC_HAS_IPV6)) += \
+CSRC-$(findstring y,$(UCLIBC_HAS_RESOLVER_SUPPORT)) += \
+ ns_netint.c ns_parse.c res_data.c \
res_init.c res_query.c res_comp.c ns_name.c \
_res_state.c
-CSRC-$(findstring y,$(UCLIBC_HAS_RESOLVER_SUPPORT)) += \
- ns_netint.c ns_parse.c res_data.c
## # unused ATM
## CSRC-y += encodep.c decodep.c formquery.c