mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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'.
This commit is contained in:
parent
0778385802
commit
fc2f38023b
1 changed files with 6 additions and 12 deletions
18
Makefile.am
18
Makefile.am
|
@ -130,18 +130,12 @@ CLEANFILES = $(GOBJECTS) *.log
|
|||
|
||||
.scm.go:
|
||||
$(MKDIR_P) `dirname "$@"`
|
||||
NIX_INSTANTIATE="$(NIX_INSTANTIATE)" \
|
||||
NIXPKGS="$(NIXPKGS)" \
|
||||
LIBGCRYPT="$(LIBGCRYPT)" \
|
||||
DISTRO_PATCH_DIRECTORY="$(top_srcdir)/distro/patches" \
|
||||
DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \
|
||||
DISTRO_BOOTSTRAP_DIRECTORY="$(top_srcdir)/distro/packages/bootstrap" \
|
||||
DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \
|
||||
GUILE_AUTO_COMPILE=0 \
|
||||
GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
|
||||
$(GUILD) compile -L "$(top_srcdir)" \
|
||||
-Wformat -Wunbound-variable -Warity-mismatch \
|
||||
--target="$(host)" \
|
||||
DISTRO_INSTALLED_PATCH_DIRECTORY="$(patchdir)" \
|
||||
DISTRO_INSTALLED_BOOTSTRAP_DIRECTORY="$(bootstrapdir)" \
|
||||
$(top_builddir)/pre-inst-env \
|
||||
$(GUILD) compile -L "$(top_srcdir)" \
|
||||
-Wformat -Wunbound-variable -Warity-mismatch \
|
||||
--target="$(host)" \
|
||||
-o "$@" "$<"
|
||||
|
||||
SUFFIXES = .go
|
||||
|
|
Loading…
Reference in a new issue