summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/dtc
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2010-07-15 02:22:50 +0000
committermarcel <marcel@FreeBSD.org>2010-07-15 02:22:50 +0000
commit251126898a70847061c5fa012834bdec2b986941 (patch)
treef65dc812426bc42eb57497a84e3bf5d0c443b21d /gnu/usr.bin/dtc
parent4d85fb9ab3bd86744df8e7d25a961067e8cd2d5c (diff)
downloadFreeBSD-src-251126898a70847061c5fa012834bdec2b986941.zip
FreeBSD-src-251126898a70847061c5fa012834bdec2b986941.tar.gz
Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPIC
as compiler options resulted in an invalid executable on PowerPC.
Diffstat (limited to 'gnu/usr.bin/dtc')
-rw-r--r--gnu/usr.bin/dtc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/dtc/Makefile b/gnu/usr.bin/dtc/Makefile
index 873bced..7bf8fd5 100644
--- a/gnu/usr.bin/dtc/Makefile
+++ b/gnu/usr.bin/dtc/Makefile
@@ -13,7 +13,7 @@ SRCS= dtc.c checks.c fstree.c livetree.c treesource.c data.c \
fdt.c fdt_ro.c fdt_rw.c fdt_strerror.c \
fdt_sw.c fdt_wip.c ${DTCVERSIONFILE}
-CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual
+WARNS?= 2
CFLAGS+= -I. -I${.CURDIR} -I${DTCDIR} -I${LIBFDTDIR}
VERSIONMAJ!= awk '/^VERSION =/ { print $$3 }' ${DTCDIR}/Makefile
OpenPOWER on IntegriCloud