Module Name:    src
Committed By:   christos
Date:           Fri May  1 21:58:16 UTC 2020

Modified Files:
        src/lib/libpam/libpam: Makefile

Log Message:
Fix the vax build and explain why...


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libpam/libpam/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpam/libpam/Makefile
diff -u src/lib/libpam/libpam/Makefile:1.24 src/lib/libpam/libpam/Makefile:1.25
--- src/lib/libpam/libpam/Makefile:1.24	Tue Apr 28 22:16:56 2020
+++ src/lib/libpam/libpam/Makefile	Fri May  1 17:58:16 2020
@@ -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 @@ NOPROFILE=	# Don't build a profiling lib
 
 .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=

Reply via email to