Most of binutils now compiles at WARNS=3, except for libiberty and
libbfd, which still need WARNS=2.
This commit is contained in:
parent
b927df46b1
commit
e083002bca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/binutils-2.17/; revision=214223
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= addr2line
|
PROG= addr2line
|
||||||
SRCS= addr2line.c
|
SRCS= addr2line.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils
|
CFLAGS+= -I${SRCDIR}/binutils
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
# BINDIR
|
# BINDIR
|
||||||
.include "${.CURDIR}/../../Makefile.inc"
|
.include "${.CURDIR}/../../Makefile.inc"
|
||||||
WARNS?= 2
|
|
||||||
NO_WERROR=
|
|
||||||
.include "${.CURDIR}/../Makefile.inc0"
|
.include "${.CURDIR}/../Makefile.inc0"
|
||||||
|
|
||||||
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
|
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
|
||||||
|
@ -26,7 +26,6 @@ SRCS+= ldcref.c \
|
|||||||
lexsup.c \
|
lexsup.c \
|
||||||
mri.c
|
mri.c
|
||||||
|
|
||||||
WARNS?= 0 # ldemul.h problem (`struct option' declared inside parameter list)
|
|
||||||
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
|
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
|
||||||
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
|
CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
|
||||||
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
|
CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
|
||||||
|
@ -41,7 +41,6 @@ SRCS+= archive.c \
|
|||||||
targets.c \
|
targets.c \
|
||||||
targmatch.h \
|
targmatch.h \
|
||||||
tekhex.c
|
tekhex.c
|
||||||
WARNS?= 0
|
|
||||||
.if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64")
|
.if (${TARGET_ARCH} == "ia64" || ${TARGET_ARCH} == "sparc64")
|
||||||
WARNS?= 2
|
WARNS?= 2
|
||||||
.endif
|
.endif
|
||||||
|
@ -23,7 +23,6 @@ SRCS+= arlex.l \
|
|||||||
unwind-ia64.c \
|
unwind-ia64.c \
|
||||||
version.c \
|
version.c \
|
||||||
wrstabs.c
|
wrstabs.c
|
||||||
WARNS?= 0
|
|
||||||
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
|
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
|
||||||
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
|
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
|
@ -34,7 +34,7 @@ SRCS= argv.c \
|
|||||||
# The following files are needed by gdb(1)
|
# The following files are needed by gdb(1)
|
||||||
SRCS+= splay-tree.c
|
SRCS+= splay-tree.c
|
||||||
|
|
||||||
WARNS?= 1
|
WARNS?= 2
|
||||||
CFLAGS+= -DHAVE_CONFIG_H
|
CFLAGS+= -DHAVE_CONFIG_H
|
||||||
INTERNALLIB=
|
INTERNALLIB=
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= nm
|
PROG= nm
|
||||||
SRCS= nm.c
|
SRCS= nm.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/bfd
|
CFLAGS+= -I${SRCDIR}/bfd
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= objcopy
|
PROG= objcopy
|
||||||
SRCS= objcopy.c not-strip.c
|
SRCS= objcopy.c not-strip.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
|
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= objdump
|
PROG= objdump
|
||||||
SRCS= objdump.c prdbg.c
|
SRCS= objdump.c prdbg.c
|
||||||
WARNS?= 1
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils
|
CFLAGS+= -I${SRCDIR}/binutils
|
||||||
|
@ -9,7 +9,6 @@ BINDIR=/usr/bin
|
|||||||
|
|
||||||
PROG= readelf
|
PROG= readelf
|
||||||
SRCS= ${PROG}.c
|
SRCS= ${PROG}.c
|
||||||
WARNS?= 0
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils -I${SRCDIR}/binutils
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= size
|
PROG= size
|
||||||
SRCS= size.c
|
SRCS= size.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils
|
CFLAGS+= -I${SRCDIR}/binutils
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= strings
|
PROG= strings
|
||||||
SRCS= strings.c
|
SRCS= strings.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils
|
CFLAGS+= -I${SRCDIR}/binutils
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
PROG= strip
|
PROG= strip
|
||||||
SRCS= objcopy.c is-strip.c
|
SRCS= objcopy.c is-strip.c
|
||||||
WARNS?= 2
|
|
||||||
CFLAGS+= -D_GNU_SOURCE
|
CFLAGS+= -D_GNU_SOURCE
|
||||||
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
||||||
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
|
CFLAGS+= -I${SRCDIR}/binutils -I${SRCDIR}/bfd
|
||||||
|
Loading…
Reference in New Issue
Block a user