[DragonFlyBSD - Submit #2206] (New) [PATCH] Libmagic doesn't com

看板DFBSD_submit作者時間14年前 (2011/11/17 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Issue #2206 has been reported by Juan Francisco Cantero Hurtado. ---------------------------------------- Submit #2206: [PATCH] Libmagic doesn't compile with clang http://bugs.dragonflybsd.org/issues/2206 Author: Juan Francisco Cantero Hurtado Status: New Priority: Normal Assignee: Category: Target version: * -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 -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
文章代碼(AID): #1En78e2J (DFBSD_submit)