From 8fab100df6c70a8c52c5267de75393c72e328056 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 18 Mar 2016 03:37:38 -0400 Subject: project: host heuristics: provide a fallback (cross-)host via -dumpmachine. --- project/extras.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project/extras.mk b/project/extras.mk index 8e2cb61..caf26a3 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,3 +1,8 @@ CFLAGS_SHARED_ATTR += -DSLBT_PRE_ALPHA -DSLBT_BUILD CFLAGS_STATIC_ATTR += -DSLBT_PRE_ALPHA -DSLBT_STATIC CFLAGS_APP_ATTR += -DSLBT_APP + +CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(shell $(CC) $(CFLAGS) -dumpmachine)\" + +src/driver/slbt_driver_ctx.o: CFLAGS += $(CFLAGS_MACHINE) +src/driver/slbt_driver_ctx.lo: CFLAGS += $(CFLAGS_MACHINE) -- cgit v1.2.3