Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpam/libpam Fix the vax build and explain why...



details:   https://anonhg.NetBSD.org/src/rev/c9e9127ee0ed
branches:  trunk
changeset: 932187:c9e9127ee0ed
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 01 21:58:16 2020 +0000

description:
Fix the vax build and explain why...

diffstat:

 lib/libpam/libpam/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 58a02f947f4f -r c9e9127ee0ed lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Fri May 01 21:43:23 2020 +0000
+++ b/lib/libpam/libpam/Makefile        Fri May 01 21:58:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2020/04/29 02:16:56 riastradh Exp $
+# $NetBSD: Makefile,v 1.25 2020/05/01 21:58:16 christos Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -40,6 +40,14 @@
 
 .include <bsd.own.mk>
 
+.if ${MACHINE} == "vax"
+# On VAX everything is PIC so we don't need to build a separate _pic.a
+# libraries so we set MKPICLIB.vax=no in bsd.own.mk to save time and space.
+# But in libpam.a we include the static modules which we don't want in the
+# shared library, so we force the build system to build a separate _pic.a.
+MKPICLIB=yes
+.endif
+
 DIST=   ${NETBSDSRCDIR}/external/bsd/openpam/dist
 LIB=   pam
 NOPROFILE=



Home | Main Index | Thread Index | Old Index