From b719ef4874fd90597dd46909839bccf722b56f1a Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Feb 11 2020 03:56:19 +0000 Subject: Fix setting of TINYGOROOT to point to installed version. --- diff --git a/tinygo.spec b/tinygo.spec index 06003a8..7b3ea09 100644 --- a/tinygo.spec +++ b/tinygo.spec @@ -29,7 +29,7 @@ tools. Based on LLVM.} #global gosupfiles lib/CMSIS/CMSIS/Include/*.h lib/compiler-rt/lib/builtins/*/*.S lib/nrfx/mdk/*.{ld,S} src/examples/wasm/*/*.js targets/*.{js,json,ld,S} Name: tinygo -Release: 1%{?dist} +Release: 2%{?dist} Summary: Go compiler for small places # Main files: BSD @@ -121,7 +121,7 @@ ln -s %{_libdir}/clang/%{clang_version}/include lib/clang/include %build -export LDFLAGS="-X main.TINYGOROOT=%{tinygoroot} " +export LDFLAGS="-X github.com/tinygo-org/tinygo/goenv.TINYGOROOT=%{tinygoroot} " %gobuild -o %{gobuilddir}/bin/tinygo %{goipath} GO111MODULE=off %make_build gen-device PYTHON=%{__python3} for target in armv6m-none-eabi armv7m-none-eabi armv7em-none-eabi; do @@ -186,6 +186,9 @@ PATH=%{buildroot}%{_bindir}:$PATH make smoketest AVR=0 RISCV=0 %changelog +* Mon Feb 10 2020 Elliott Sales de Andrade - 0.11.0-2 +- Fix setting of TINYGOROOT to point to packaged version + * Mon Feb 10 2020 Elliott Sales de Andrade - 0.11.0-1 - Update to 0.11.0