diff options
author | midipix <writeonce@midipix.org> | 2016-03-18 03:37:38 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-18 03:37:38 -0400 |
commit | 8fab100df6c70a8c52c5267de75393c72e328056 (patch) | |
tree | d319996c1ca76a81da9575445f643e16a4f73e8d | |
parent | e43b24471834db4f8d658b3a28a8c79e33649fed (diff) | |
download | slibtool-8fab100df6c70a8c52c5267de75393c72e328056.tar.bz2 slibtool-8fab100df6c70a8c52c5267de75393c72e328056.tar.xz |
project: host heuristics: provide a fallback (cross-)host via -dumpmachine.
-rw-r--r-- | project/extras.mk | 5 |
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) |