build: Use `pre-inst-env' to compile the source.
* Makefile.am (.scm.go): Use `pre-inst-env' instead of re-defining the environment variables, except for `DISTRO_INSTALLED_PATCH_DIRECTORY' and `DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY'.master
parent
0778385802
commit
fc2f38023b
|
@ -130,15 +130,9 @@ CLEANFILES = $(GOBJECTS) *.log
|
||||||
|
|
||||||
.scm.go:
|
.scm.go:
|
||||||
$(MKDIR_P) `dirname "$@"`
|
$(MKDIR_P) `dirname "$@"`
|
||||||
NIX_INSTANTIATE="$(NIX_INSTANTIATE)" \
|
|
||||||
NIXPKGS="$(NIXPKGS)" \
|
|
||||||
LIBGCRYPT="$(LIBGCRYPT)" \
|
|
||||||
DISTRO_PATCH_DIRECTORY="$(top_srcdir)/distro/patches" \
|
|
||||||
DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \
|
DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \
|
||||||
DISTRO_BOOTSTRAP_DIRECTORY="$(top_srcdir)/distro/packages/bootstrap" \
|
|
||||||
DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \
|
DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \
|
||||||
GUILE_AUTO_COMPILE=0 \
|
$(top_builddir)/pre-inst-env \
|
||||||
GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
|
|
||||||
$(GUILD) compile -L "$(top_srcdir)" \
|
$(GUILD) compile -L "$(top_srcdir)" \
|
||||||
-Wformat -Wunbound-variable -Warity-mismatch \
|
-Wformat -Wunbound-variable -Warity-mismatch \
|
||||||
--target="$(host)" \
|
--target="$(host)" \
|
||||||
|
|
Reference in New Issue