Commit 338bfc1e authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
current_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
temporary:
tar xf go1.8.7.src.tar.gz
# FIXME: go tests failure! Cannot successfully complete all.bash
if [ "$(HOSTTYPE)" = "aarch64" ]; then \
tar xf go-linux-arm64-bootstrap.tbz ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm64-bootstrap ./make.bash ; \
rm -rf $(current_dir)go-linux-arm64-bootstrap ; \
elif [ "$(HOSTTYPE)" = "x86_64" ]; then \
tar xf go-linux-amd64-bootstrap.tbz ; \
ln -s /lib /lib64 ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-amd64-bootstrap ./make.bash ; \
rm -rf /lib64 ; \
rm -rf $(current_dir)go-linux-amd64-bootstrap ; \
else \
tar xf go-linux-arm-bootstrap.tbz ; \
cd go/src && GOROOT_BOOTSTRAP=$(current_dir)go-linux-arm-bootstrap ./make.bash ; \
rm -rf $(current_dir)go-linux-arm-bootstrap ; \
fi
<project name="go">
<target name="go-bootstrap">
<property name="makedir" value="${builddir}/go"/>
<exec executable="tar" failonerror="true">
<arg line="xf ${basedir}/packages/go/go1.4-bootstrap-20170531.tar.gz -C ${builddir}"/>
</exec>
<exec executable="./make.bash" dir="${makedir}/src"/>
<move file="${builddir}/go" tofile="${builddir}/go1.4"/>
<exec executable="tar" failonerror="true">
<arg line="xf ${basedir}/packages/go/go1.8.7.src.tar.gz -C ${builddir}"/>
</exec>
<exec executable="./bootstrap.bash" dir="${makedir}/src">
<env key="GOROOT_BOOTSTRAP" path="${builddir}/go1.4"/>
<env key="GOOS" value="linux"/>
<env key="GOARCH" value="${GOARCH}"/>
</exec>
<delete dir="${builddir}/go1.4"/>
<delete dir="${builddir}/go"/>
<delete dir="${builddir}/go-linux-${GOARCH}-bootstrap"/>
</target>
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment