diff options
| author | guenther <> | 2009-11-18 07:43:22 +0000 |
|---|---|---|
| committer | guenther <> | 2009-11-18 07:43:22 +0000 |
| commit | e0efb79737de1ab6a8d49757f7ed05b933db3e29 (patch) | |
| tree | 69cb2944835feb73c511d3d6141bf71d95163b13 /src/lib/libc/net/Makefile.inc | |
| parent | f1d42d6eee1da63866ae153d6e369735e5a8d456 (diff) | |
| download | openbsd-e0efb79737de1ab6a8d49757f7ed05b933db3e29.tar.gz openbsd-e0efb79737de1ab6a8d49757f7ed05b933db3e29.tar.bz2 openbsd-e0efb79737de1ab6a8d49757f7ed05b933db3e29.zip | |
More shrinkage, a bit for ramdisks but mostly for static binaries:
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses
p_class() and p_type() for diagnostics, then add that define to
libstub to avoid pulling in res_debug_syms.o
- split rcmd() and ruserok() into separate files, as nothing uses both
- split readdir_r() to its own file
- split syslog_r() from syslog(), as the latter needs localtime(); many
binaries no longer need to pull in all the time code after this; switch
from usleep() to nanosleep() while we're at it
(The profit of analysis of -Wl,-M,--cref output)
Chops 888kB from /bin and /sbin on i386
ok deraadt@, miod@
Diffstat (limited to 'src/lib/libc/net/Makefile.inc')
| -rw-r--r-- | src/lib/libc/net/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/Makefile.inc b/src/lib/libc/net/Makefile.inc index 244c266536..50924ec135 100644 --- a/src/lib/libc/net/Makefile.inc +++ b/src/lib/libc/net/Makefile.inc | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile.inc,v 1.45 2009/08/13 19:54:58 jmc Exp $ | 1 | # $OpenBSD: Makefile.inc,v 1.46 2009/11/18 07:43:22 guenther Exp $ |
| 2 | 2 | ||
| 3 | # net sources | 3 | # net sources |
| 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/net ${LIBCSRCDIR}/net | 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/net ${LIBCSRCDIR}/net |
| @@ -13,7 +13,7 @@ SRCS+= base64.c freeaddrinfo.c gai_strerror.c getaddrinfo.c gethostnamadr.c \ | |||
| 13 | inet_lnaof.c inet_makeaddr.c inet_neta.c inet_netof.c inet_network.c \ | 13 | inet_lnaof.c inet_makeaddr.c inet_neta.c inet_netof.c inet_network.c \ |
| 14 | inet_net_ntop.c inet_net_pton.c inet_ntoa.c inet_ntop.c inet_pton.c \ | 14 | inet_net_ntop.c inet_net_pton.c inet_ntoa.c inet_ntop.c inet_pton.c \ |
| 15 | linkaddr.c net_addrcmp.c nsap_addr.c \ | 15 | linkaddr.c net_addrcmp.c nsap_addr.c \ |
| 16 | rcmd.c rresvport.c recv.c res_comp.c res_data.c res_debug.c \ | 16 | rcmd.c ruserok.c rresvport.c recv.c res_comp.c res_data.c res_debug.c \ |
| 17 | res_debug_syms.c \ | 17 | res_debug_syms.c \ |
| 18 | res_init.c res_mkquery.c res_query.c res_random.c res_send.c send.c \ | 18 | res_init.c res_mkquery.c res_query.c res_random.c res_send.c send.c \ |
| 19 | sethostent.c ethers.c rcmdsh.c | 19 | sethostent.c ethers.c rcmdsh.c |
