~juju-qa/juju-release-tools/packaging-juju-core-default

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Curtis Hovey
  • Date: 2015-12-18 03:44:31 UTC
  • mfrom: (79.1.4 arch-hack)
  • Revision ID: curtis@canonical.com-20151218034431-zr3s9vs9gw8eghdm
Force the GOARCH to ppc64el when GOHOSTARCH is ppc64el because gccgo-go is cross-compiling..

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#export DH_VERBOSE=1
6
6
export GOPATH:=$(CURDIR)
7
7
export PATH:=$(GOPATH)/bin:$(PATH)
 
8
ifeq ($(shell go env GOHOSTARCH),ppc64le)
 
9
    # Bug Lp: 1527020 gccgo-go is cross-compiling to ppc64.
 
10
        export GOARCH:=ppc64le
 
11
endif
8
12
 
9
13
PKGDIR:=debian/juju-core
10
14
VERSION:=$(shell sed -n 's/^const version = "\(.*\)"/\1/p' $(GOPATH)/src/github.com/juju/juju/version/version.go)