[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] use "share/chicken" also on compilation target
From: |
felix . winkelmann |
Subject: |
Re: [PATCH] use "share/chicken" also on compilation target |
Date: |
Sat, 07 Aug 2021 10:16:22 +0200 |
> > This patch changes TARGET_SHARE_HOME to also include the "chicken" suffix,
> > so it should be identical to INSTALL_SHARE_HOME in normal situations (when
> > not cross-compiling). This also addresses the installation location of
> > "mac.r"
> > (only on macs, which should use IDATADIR and not ISHAREDIR).
>
> defaults.make has this line:
>
> DATADIR ?= $(SHAREDIR)/$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)
>
> so this line in the patch:
>
> $(call echo, >>, $@,# define C_TARGET_SHARE_HOME
> "$(TARGET_PREFIX)/share/chicken")
>
> should probably be:
>
> $(call echo, >>, $@,# define C_TARGET_SHARE_HOME
> "$(TARGET_PREFIX)/share/$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX)")
No, this is intentional. The prefix/suffix is for distinguishing the built
chicken on the host
(in case you have multiple cross-chickens for multiple targets).
felix