mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
70d099afe0
Recent binutils considered the .gnu.warning.symbol section as a fatal error when run with --fatal-warnings which makes any users of "insecure" functions from libc failing to build with recent binutils. Introduce a new macro: LD_FATAL_WARNINGS=no to run ld(1) with --no-fatal-warnings for the users of "insecure" functions Differential Revision: https://reviews.freebsd.org/D1320
27 lines
609 B
Makefile
27 lines
609 B
Makefile
# $FreeBSD$
|
|
#
|
|
# Author: Harti Brandt <harti@freebsd.org>
|
|
|
|
.include <src.opts.mk>
|
|
|
|
CONTRIB= ${.CURDIR}/../../../contrib/bsnmp/lib
|
|
.PATH: ${CONTRIB}
|
|
|
|
LIB= bsnmp
|
|
SHLIB_MAJOR= 6
|
|
LD_FATAL_WARNINGS= no
|
|
|
|
CFLAGS+= -I${CONTRIB} -DHAVE_ERR_H -DHAVE_GETADDRINFO -DHAVE_STRLCPY
|
|
CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DQUADFMT='"llu"' -DQUADXFMT='"llx"'
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
CFLAGS+= -DHAVE_LIBCRYPTO
|
|
LIBADD= crypto
|
|
.endif
|
|
|
|
SRCS= asn1.c snmp.c snmpagent.c snmpclient.c snmpcrypto.c support.c
|
|
INCS= asn1.h snmp.h snmpagent.h snmpclient.h
|
|
MAN= asn1.3 bsnmplib.3 bsnmpclient.3 bsnmpagent.3
|
|
|
|
.include <bsd.lib.mk>
|