| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.20 2019/10/09 22:05:09 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2019/10/10 02:37:40 kre Exp $ |
2 | #- | | 2 | #- |
3 | # Copyright (c) 1998 Juniper Networks, Inc. | | 3 | # Copyright (c) 1998 Juniper Networks, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # Copyright (c) 2002 Networks Associates Technology, Inc. | | 5 | # Copyright (c) 2002 Networks Associates Technology, Inc. |
6 | # All rights reserved. | | 6 | # All rights reserved. |
7 | # | | 7 | # |
8 | # Portions of this software was developed for the FreeBSD Project by | | 8 | # Portions of this software was developed for the FreeBSD Project by |
9 | # ThinkSec AS and NAI Labs, the Security Research Division of Network | | 9 | # ThinkSec AS and NAI Labs, the Security Research Division of Network |
10 | # Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 | | 10 | # Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 |
11 | # ("CBOSS"), as part of the DARPA CHATS research program. | | 11 | # ("CBOSS"), as part of the DARPA CHATS research program. |
12 | # | | 12 | # |
13 | # Redistribution and use in source and binary forms, with or without | | 13 | # Redistribution and use in source and binary forms, with or without |
14 | # modification, are permitted provided that the following conditions | | 14 | # modification, are permitted provided that the following conditions |
| @@ -194,22 +194,22 @@ PAM_DIR=${.CURDIR} | | | @@ -194,22 +194,22 @@ PAM_DIR=${.CURDIR} |
194 | .endif | | 194 | .endif |
195 | .for MOD in ${STATIC_MODULES} | | 195 | .for MOD in ${STATIC_MODULES} |
196 | MODOBJDIR!= cd ${PAM_DIR}/${MODULE_DIR}/${MOD} && ${PRINTOBJDIR} | | 196 | MODOBJDIR!= cd ${PAM_DIR}/${MODULE_DIR}/${MOD} && ${PRINTOBJDIR} |
197 | STATIC_MODULE_LIBS:= ${STATIC_MODULE_LIBS} ${MODOBJDIR}/lib${MOD}.a | | 197 | STATIC_MODULE_LIBS:= ${STATIC_MODULE_LIBS} ${MODOBJDIR}/lib${MOD}.a |
198 | .endfor | | 198 | .endfor |
199 | | | 199 | |
200 | # XXX Using ${.ALLSRC} in the ld command causes openpam_static.c to be | | 200 | # XXX Using ${.ALLSRC} in the ld command causes openpam_static.c to be |
201 | # XXX used. Why??!! --thorpej | | 201 | # XXX used. Why??!! --thorpej |
202 | openpam_static_modules.o: openpam_static.o ${STATIC_MODULE_LIBS} | | 202 | openpam_static_modules.o: openpam_static.o ${STATIC_MODULE_LIBS} |
203 | ${CC} ${LDFLAGS} -nostdlib -o ${.TARGET} -r -Wl,--whole-archive \ | | 203 | ${CC} ${LDFLAGS} -nostdlib -o ${.TARGET} -r -Wl,--whole-archive \ |
204 | openpam_static.o ${STATIC_MODULE_LIBS} | | 204 | openpam_static.o ${STATIC_MODULE_LIBS} |
205 | | | 205 | |
206 | CWARNFLAGS.clang+= -Wno-error=tautological-pointer-compare | | 206 | CWARNFLAGS.clang+= -Wno-error=tautological-pointer-compare |
207 | .if ${ACTIVE_CC} == "gcc" | | 207 | .if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" |
208 | COPTS.openpam_dynamic.c += -Wno-error=cast-function-type | | 208 | COPTS.openpam_dynamic.c += -Wno-error=cast-function-type |
209 | .endif | | 209 | .endif |
210 | | | 210 | |
211 | .include <bsd.lib.mk> | | 211 | .include <bsd.lib.mk> |
212 | .PATH.h: ${DIST}/include | | 212 | .PATH.h: ${DIST}/include |
213 | .PATH.c: ${DIST}/lib/libpam | | 213 | .PATH.c: ${DIST}/lib/libpam |
214 | .PATH.3: ${DIST}/doc/man | | 214 | .PATH.3: ${DIST}/doc/man |
215 | .PATH.5: ${DIST}/doc/man | | 215 | .PATH.5: ${DIST}/doc/man |