mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
d4352d2928
commit
a7c2001059
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue