diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-12-23 10:43:35 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-12-23 10:43:35 +0000 |
commit | 70d099afe03f2b75a908381332d7275187b6a593 (patch) | |
tree | db8e59aa5c8442bd11d6be99ec1f157319c82a4a /lib/libbsnmp | |
parent | 1f69310e70788b89f11729b1d8bfe687f474d1a1 (diff) | |
download | src-test-70d099afe03f2b75a908381332d7275187b6a593.tar.gz src-test-70d099afe03f2b75a908381332d7275187b6a593.zip |
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
Notes
Notes:
svn path=/head/; revision=276128
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 cc294cf57eee4..ef6e35b9726b7 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"' |