From 14a2bd52f7d1f93cfde49bc80ba28a406180334b Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 7 Mar 2018 17:18:46 +0000 Subject: [PATCH] stand/ficl: Fix testmain testmain is a userland application intended to be built with standard headers and whatnot, which we broke. Fix it by having the testmain build clobber cflags, reducing it to just the set of defines/includes it needs to build. Discussed with: imp MFC after: 3 days --- stand/ficl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stand/ficl/Makefile b/stand/ficl/Makefile index 13e0a10de1fc..35730851d884 100644 --- a/stand/ficl/Makefile +++ b/stand/ficl/Makefile @@ -13,7 +13,8 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c CLEANFILES+= softcore.c testmain testmain.o .ifmake testmain -CFLAGS+= -DTESTMAIN -D_TESTMAIN +CFLAGS= -DTESTMAIN -D_TESTMAIN +CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC} SRCS+= testmain.c PROG= testmain .include