summaryrefslogtreecommitdiffstats
path: root/lib/libmagic
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-08-01 12:10:32 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-08-01 12:10:32 +0000
commitaf7bf3c732e5ae3fc88b353ee90a34776d1844fa (patch)
tree6c103e9d548b08a65baea19372ca0e9bff1e8c31 /lib/libmagic
parent224caf9be079f885897539cd3f0e35e3573a62f6 (diff)
downloadFreeBSD-src-af7bf3c732e5ae3fc88b353ee90a34776d1844fa.zip
FreeBSD-src-af7bf3c732e5ae3fc88b353ee90a34776d1844fa.tar.gz
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
Diffstat (limited to 'lib/libmagic')
-rw-r--r--lib/libmagic/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libmagic/Makefile b/lib/libmagic/Makefile
index 36d736a..4d5ab9d 100644
--- a/lib/libmagic/Makefile
+++ b/lib/libmagic/Makefile
@@ -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
OpenPOWER on IntegriCloud