summaryrefslogtreecommitdiff
path: root/project/extras.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-10 10:27:33 +0000
committermidipix <writeonce@midipix.org>2021-04-10 15:37:31 +0000
commit1bb591b6b6c9d4b2d4933de7960bcf4f0aa3e1ba (patch)
tree2373e3ee8faf2e3993447131d940adc7f13d9728 /project/extras.mk
parentff494d7c4150fba1844981a4ca2dfbb55316d2fe (diff)
downloadslibtool-1bb591b6b6c9d4b2d4933de7960bcf4f0aa3e1ba.tar.bz2
slibtool-1bb591b6b6c9d4b2d4933de7960bcf4f0aa3e1ba.tar.xz
project: posix make support: refactored the cflag definition of SLBT_MACHINE.
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk6
1 files changed, 2 insertions, 4 deletions
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