svn commit: r210101 - head/gnu/usr.bin/dtc

Marcel Moolenaar marcel at FreeBSD.org
Thu Jul 15 02:22:51 UTC 2010


Author: marcel
Date: Thu Jul 15 02:22:50 2010
New Revision: 210101
URL: http://svn.freebsd.org/changeset/base/210101

Log:
  Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPIC
  as compiler options resulted in an invalid executable on PowerPC.

Modified:
  head/gnu/usr.bin/dtc/Makefile

Modified: head/gnu/usr.bin/dtc/Makefile
==============================================================================
--- head/gnu/usr.bin/dtc/Makefile	Thu Jul 15 01:58:20 2010	(r210100)
+++ head/gnu/usr.bin/dtc/Makefile	Thu Jul 15 02:22:50 2010	(r210101)
@@ -13,7 +13,7 @@ SRCS=	dtc.c checks.c fstree.c livetree.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


More information about the svn-src-all mailing list