summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/Makefile
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-08-16 08:53:15 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-08-16 08:53:15 +0000
commitd1d872e8f28274d79cd4b915bb17377c866f5868 (patch)
treea8d105213b87314c011525de46b6104ae42647d8 /libc/inet/rpc/Makefile
parent2a272e8265d3109faedcb4ee6b8b93f49c52b228 (diff)
Make INCLUDE_FULL_RPC default to !HAVE_SHARED.
Diffstat (limited to 'libc/inet/rpc/Makefile')
-rw-r--r--libc/inet/rpc/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/libc/inet/rpc/Makefile b/libc/inet/rpc/Makefile
index 5e680ac23..67691e4b6 100644
--- a/libc/inet/rpc/Makefile
+++ b/libc/inet/rpc/Makefile
@@ -1,7 +1,7 @@
# Makefile for uClibc
#
# Copyright (C) 2000 by Lineo, inc.
-# Copyright (C) 2000,2001 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000,2001,2002 Erik Andersen <andersen@uclibc.org>
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU Library General Public License as published by the Free
@@ -25,6 +25,19 @@ TOPDIR=../../../
include $(TOPDIR)Rules.mak
CFLAGS+=-I$(TOPDIR)libpthread/linuxthreads/sysdeps/pthread
+# If INCLUDE_FULL_RPC is not defined, default to `false' if shared
+# libraries are enabled, and `true' otherwise (because the main
+# advantage of not including everything is that it reduces the size of
+# shared libraries; the size of static libraries doesn't typically
+# matter as much, since they need not be present at runtime).
+ifeq ($(strip $(INCLUDE_FULL_RPC)),)
+ ifeq ($(strip $(HAVE_SHARED)),false)
+ INCLUDE_FULL_RPC = true
+ else
+ INCLUDE_FULL_RPC = false
+ endif
+endif
+
ifeq ($(strip $(INCLUDE_FULL_RPC)),true)
CSRC :=auth_none.c auth_unix.c authunix_prot.c bindresvport.c \
clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c clnt_tcp.c \