1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPIC

as compiler options resulted in an invalid executable on PowerPC.
This commit is contained in:
Marcel Moolenaar 2010-07-15 02:22:50 +00:00
parent 9d1f4f86c5
commit 0d95bb16e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210101

View File

@ -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