summaryrefslogtreecommitdiff
path: root/lib/libkrb5/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-07 14:56:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-08-07 14:56:24 +0000
commit2d311a1310982c3a310c0f912dd736bd8abbc652 (patch)
tree63bfcbfcdd6edbe6e6b1b8334cce12ffa9fc7683 /lib/libkrb5/Makefile
parent08cd84b149d547ebe8f092b7a5dc274a0bf63b05 (diff)
for the library ln(1)'ing, only do _pic.a if it exists (mips lacks _pic.a)
Diffstat (limited to 'lib/libkrb5/Makefile')
-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 \