summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/login_krb5-or-pwd/Makefile5
-rw-r--r--libexec/login_krb5/Makefile5
2 files changed, 8 insertions, 2 deletions
diff --git a/libexec/login_krb5-or-pwd/Makefile b/libexec/login_krb5-or-pwd/Makefile
index a60cf283618..b65e83df7d7 100644
--- a/libexec/login_krb5-or-pwd/Makefile
+++ b/libexec/login_krb5-or-pwd/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.16 2013/06/19 19:45:03 robert Exp $
+# $OpenBSD: Makefile,v 1.17 2013/08/06 19:05:57 miod Exp $
.include <bsd.own.mk>
@@ -14,6 +14,9 @@ LDADD+= -lkrb5 -lasn1 -lcrypto -lutil
LDADD+= -lwind -lroken -lcom_err -lheimbase
CFLAGS+=-DKRB5
.PATH: ${.CURDIR}/../login_passwd ${.CURDIR}/../login_krb5 ${.CURDIR}/../../usr.bin/passwd
+.if ${MACHINE} == "vax"
+LDFLAGS+=-Wl,--no-keep-memory
+.endif
.else
DPADD+= ${LIBUTIL}
LDADD+= -lutil
diff --git a/libexec/login_krb5/Makefile b/libexec/login_krb5/Makefile
index 9027b18ad96..57676948dd7 100644
--- a/libexec/login_krb5/Makefile
+++ b/libexec/login_krb5/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.19 2013/06/19 19:45:03 robert Exp $
+# $OpenBSD: Makefile,v 1.20 2013/08/06 19:05:57 miod Exp $
.include <bsd.own.mk>
@@ -14,6 +14,9 @@ DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO}
LDADD+= -lkrb5 -lasn1 -lcrypto
LDADD+= -lwind -lroken -lcom_err -lheimbase
CFLAGS+=-DKRB5
+.if ${MACHINE} == "vax"
+LDFLAGS+=-Wl,--no-keep-memory
+.endif
.endif
DPADD+= ${LIBUTIL}