summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-08-07 14:56:23 +0000
committerderaadt <deraadt@openbsd.org>2004-08-07 14:56:23 +0000
commitf00c177413431c7e4033e7dea148bde656b08fb9 (patch)
treea607db235f3f87e1c5f0aedc022a8f423180d770
parentfix bug in L2 cache size detection code (diff)
downloadwireguard-openbsd-f00c177413431c7e4033e7dea148bde656b08fb9.tar.xz
wireguard-openbsd-f00c177413431c7e4033e7dea148bde656b08fb9.zip
for the library ln(1)'ing, only do _pic.a if it exists (mips lacks _pic.a)
-rw-r--r--lib/libkrb5/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libkrb5/Makefile b/lib/libkrb5/Makefile
index 195ab12e370..f66db982014 100644
--- a/lib/libkrb5/Makefile
+++ b/lib/libkrb5/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.14 2003/07/18 06:35:50 matthieu Exp $
+# $OpenBSD: Makefile,v 1.15 2004/08/07 14:56:23 deraadt Exp $
.include <bsd.own.mk>
@@ -95,8 +95,10 @@ afterinstall:
$(DESTDIR)$(LIBDIR)/lib$$f.so.$(SHLIB_MAJOR).$(SHLIB_MINOR) ;\
done
for f in $(SHLIB_LINKS); do \
- ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB)_pic.a \
- $(DESTDIR)$(LIBDIR)/lib$${f}_pic.a ;\
+ if [ -f $(DESTDIR)$(LIBDIR)/lib$(LIB)_pic.a ]; then \
+ ln -f $(DESTDIR)$(LIBDIR)/lib$(LIB)_pic.a \
+ $(DESTDIR)$(LIBDIR)/lib$${f}_pic.a ;\
+ fi \
done
.endif
for f in $(ALIB_LINKS); do \