diff options
author | bapt <bapt@FreeBSD.org> | 2014-12-23 10:43:35 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-12-23 10:43:35 +0000 |
commit | 392403b5c93e605756b903b04c72748a8794636c (patch) | |
tree | db8e59aa5c8442bd11d6be99ec1f157319c82a4a /lib/libbsnmp | |
parent | 23f146747747cc3ddbf2c9e91bbca815bf291668 (diff) | |
download | FreeBSD-src-392403b5c93e605756b903b04c72748a8794636c.zip FreeBSD-src-392403b5c93e605756b903b04c72748a8794636c.tar.gz |
Fix build with recent binutils
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
Diffstat (limited to 'lib/libbsnmp')
-rw-r--r-- | lib/libbsnmp/libbsnmp/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libbsnmp/libbsnmp/Makefile b/lib/libbsnmp/libbsnmp/Makefile index cc294cf..ef6e35b 100644 --- a/lib/libbsnmp/libbsnmp/Makefile +++ b/lib/libbsnmp/libbsnmp/Makefile @@ -9,6 +9,7 @@ CONTRIB= ${.CURDIR}/../../../contrib/bsnmp/lib 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"' |