Project

General

Profile

Actions

Submit #2206

closed

[PATCH] Libmagic doesn't compile with clang

Added by juanfra684 over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

  • I is obsolete. Changed to -iquote.
    • gcc is ignoring file.h. Fix for the error compiling with clang.
      ---
      lib/libmagic/Makefile | 6 ++---
      1 files changed, 3 insertions(
      ), 3 deletions(-)

diff --git a/lib/libmagic/Makefile b/lib/libmagic/Makefile
index e339983..2151523 100644
--- a/lib/libmagic/Makefile
++ b/lib/libmagic/Makefile
@ -54,9 +54,9 @ magic.mgc: mkmagic.nx magic
CLEANFILES
= mkmagic.nx
build-tools: mkmagic.nx

NXCFLAGS= ${LIBMAGIC_CDEFS} -DCOMPILE_ONLY -I${.OBJDIR} -I I${.CURDIR} -I${CONTRIBDIR}
NXCFLAGS= ${LIBMAGIC_CDEFS} -DCOMPILE_ONLY -I${.OBJDIR} -iquote -I${.CURDIR} -I${CONTRIBDIR}
NXCFLAGS
= -DBOOTSTRAPPING
-mkmagic.nx: file.h apprentice.c funcs.c magic.c print.c
${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -o ${.TARGET}
mkmagic.nx: apprentice.c funcs.c magic.c print.c
${NXCC} ${NXCFLAGS} ${NXLDFLAGS} ${.ALLSRC} ${NXLDLIBS} -include ${CONTRIBDIR}/file.h -o ${.TARGET}

.include <bsd.lib.mk>
--
Juan Francisco Cantero Hurtado http://juanfra.info
Actions

Also available in: Atom PDF