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)")

Otherwise the patch looks good to me. Thanks for fixing this.

Reply via email to