svn commit: r210730 - head/lib/libmagic
Rui Paulo
rpaulo at FreeBSD.org
Sun Aug 1 12:10:33 UTC 2010
Author: rpaulo
Date: Sun Aug 1 12:10:32 2010
New Revision: 210730
URL: http://svn.freebsd.org/changeset/base/210730
Log:
Use CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all the
correct flags are being used (esp. NO_WERROR wrt clang).
Submitted by: Dimitry Andric <dimitry at andric.com>
Reviewed by: ru
Modified:
head/lib/libmagic/Makefile
Modified: head/lib/libmagic/Makefile
==============================================================================
--- head/lib/libmagic/Makefile Sun Aug 1 12:05:27 2010 (r210729)
+++ head/lib/libmagic/Makefile Sun Aug 1 12:10:32 2010 (r210730)
@@ -40,8 +40,7 @@ magic.mgc: mkmagic magic
CLEANFILES+= mkmagic
build-tools: mkmagic
mkmagic: apprentice.c funcs.c magic.c print.c
- ${CC} -DHAVE_CONFIG_H -DCOMPILE_ONLY \
- -I${.CURDIR} -I${CONTRDIR} -o ${.TARGET} ${.ALLSRC}
+ ${CC} ${CFLAGS} -DCOMPILE_ONLY ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \
${.CURDIR}/config.h
More information about the svn-src-head
mailing list