From 1bb591b6b6c9d4b2d4933de7960bcf4f0aa3e1ba Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Apr 2021 10:27:33 +0000 Subject: project: posix make support: refactored the cflag definition of SLBT_MACHINE. --- project/extras.mk | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'project') diff --git a/project/extras.mk b/project/extras.mk index 659d2dd..900db9c 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -2,14 +2,12 @@ CFLAGS_SHARED_ATTR += -DSLBT_PRE_ALPHA -DSLBT_EXPORT CFLAGS_STATIC_ATTR += -DSLBT_PRE_ALPHA -DSLBT_STATIC CFLAGS_APP_ATTR += -DSLBT_APP -CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(shell $(CC) $(CFLAGS) -dumpmachine)\" +CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(CC_HOST)\" +CFLAGS_ONCE += $(CFLAGS_MACHINE) src/driver/slbt_driver_ctx.o: version.tag src/driver/slbt_driver_ctx.lo: version.tag -src/driver/slbt_driver_ctx.o: CFLAGS += $(CFLAGS_MACHINE) -src/driver/slbt_driver_ctx.lo: CFLAGS += $(CFLAGS_MACHINE) - install-app-extras: DBGNAME = dlibtool install-app-extras: LEGABITS = clibtool install-app-extras: RAPUNZEL = rlibtool -- cgit v1.2.3