Wed Oct 9 22:05:10 2019 UTC ()
no error for function cast


(christos)
diff -r1.19 -r1.20 src/lib/libpam/libpam/Makefile

cvs diff -r1.19 -r1.20 src/lib/libpam/libpam/Makefile (expand / switch to unified diff)

--- src/lib/libpam/libpam/Makefile 2017/05/21 15:28:41 1.19
+++ src/lib/libpam/libpam/Makefile 2019/10/09 22:05:09 1.20
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.19 2017/05/21 15:28:41 riastradh Exp $ 1# $NetBSD: Makefile,v 1.20 2019/10/09 22:05:09 christos 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,19 +194,22 @@ PAM_DIR=${.CURDIR} @@ -194,19 +194,22 @@ PAM_DIR=${.CURDIR}
194.endif 194.endif
195.for MOD in ${STATIC_MODULES} 195.for MOD in ${STATIC_MODULES}
196MODOBJDIR!= cd ${PAM_DIR}/${MODULE_DIR}/${MOD} && ${PRINTOBJDIR} 196MODOBJDIR!= cd ${PAM_DIR}/${MODULE_DIR}/${MOD} && ${PRINTOBJDIR}
197STATIC_MODULE_LIBS:= ${STATIC_MODULE_LIBS} ${MODOBJDIR}/lib${MOD}.a 197STATIC_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
202openpam_static_modules.o: openpam_static.o ${STATIC_MODULE_LIBS} 202openpam_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
206CWARNFLAGS.clang+= -Wno-error=tautological-pointer-compare 206CWARNFLAGS.clang+= -Wno-error=tautological-pointer-compare
 207.if ${ACTIVE_CC} == "gcc"
 208COPTS.openpam_dynamic.c += -Wno-error=cast-function-type
 209.endif
207 210
208.include <bsd.lib.mk> 211.include <bsd.lib.mk>
209.PATH.h: ${DIST}/include 212.PATH.h: ${DIST}/include
210.PATH.c: ${DIST}/lib/libpam 213.PATH.c: ${DIST}/lib/libpam
211.PATH.3: ${DIST}/doc/man 214.PATH.3: ${DIST}/doc/man
212.PATH.5: ${DIST}/doc/man 215.PATH.5: ${DIST}/doc/man