summaryrefslogtreecommitdiffhomepage
path: root/project/extras.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-18 03:37:38 -0400
committermidipix <writeonce@midipix.org>2016-03-18 03:37:38 -0400
commit8fab100df6c70a8c52c5267de75393c72e328056 (patch)
treed319996c1ca76a81da9575445f643e16a4f73e8d /project/extras.mk
parente43b24471834db4f8d658b3a28a8c79e33649fed (diff)
downloadslibtool-8fab100df6c70a8c52c5267de75393c72e328056.tar.bz2
slibtool-8fab100df6c70a8c52c5267de75393c72e328056.tar.xz
project: host heuristics: provide a fallback (cross-)host via -dumpmachine.
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk5
1 files changed, 5 insertions, 0 deletions
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)