aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-08-27 10:59:57 -0700
committerRoland McGrath <roland@hack.frob.com>2013-08-27 10:59:57 -0700
commitbd81123a8ba99ac30bcf227be5103cf2863e27cb (patch)
tree8fd28d63738b761704ca3eb261132e53755d44f6 /Makefile
parentc4e42566cfecc43f9ef3ddf9c7af57c6744e2ceb (diff)
downloadtermbaud-bd81123a8ba99ac30bcf227be5103cf2863e27cb.tar.gz
termbaud-bd81123a8ba99ac30bcf227be5103cf2863e27cb.tar.xz
termbaud-bd81123a8ba99ac30bcf227be5103cf2863e27cb.zip
Cope without sunrpc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 119bb26c392..ba1820d2b25 100644
--- a/Makefile
+++ b/Makefile
@@ -138,16 +138,22 @@ $(common-objpfx)linkobj/libc.so: $(elfobjdir)/soinit.os \
$(shlib-lds)
$(build-shlib)
+ifeq (,$(filter sunrpc,$(subdirs)))
+$(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a
+ $(make-target-directory)
+ ln -f $< $@
+else
$(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a \
$(common-objpfx)sunrpc/librpc_compat_pic.a
- $(..)./scripts/mkinstalldirs $(common-objpfx)linkobj
+ $(make-target-directory)
(cd $(common-objpfx)linkobj; \
$(AR) x ../libc_pic.a; \
rm $$($(AR) t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//'); \
$(AR) x ../sunrpc/librpc_compat_pic.a; \
$(AR) cr libc_pic.a *.os; \
rm *.os)
-endif
+endif # $(subdirs) contains sunrpc
+endif # $(build-shared)
# This is a handy script for running any dynamically linked program against