diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-08-04 08:42:14 +0800 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-08-04 08:42:14 +0800 |
commit | 659a6d4cf5c33b1a13e53cbd69196b8267627b66 (patch) | |
tree | 5bcd34e8e01fda81120e6129a4f5c311311ddd61 /lang/go | |
parent | 6d726bc84e3e21e233d98c7bd4eee797909f0e54 (diff) | |
download | freebsd-ports-gnome-659a6d4cf5c33b1a13e53cbd69196b8267627b66.tar.gz freebsd-ports-gnome-659a6d4cf5c33b1a13e53cbd69196b8267627b66.tar.zst freebsd-ports-gnome-659a6d4cf5c33b1a13e53cbd69196b8267627b66.zip |
Add USE_GCC=any as build fails with clang.
Pass CC to build env to properly using the compiler desired
This fixes build on head without gcc
Diffstat (limited to 'lang/go')
-rw-r--r-- | lang/go/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile index faf6a9f4ce91..599497e2f18f 100644 --- a/lang/go/Makefile +++ b/lang/go/Makefile @@ -24,6 +24,7 @@ sh_OLD_CMD= ${SETENV} bash sh_CMD= ${SH} WRKSRC= ${WRKDIR}/go +USE_GCC= any ONLY_FOR_ARCHS= i386 amd64 SUB_FILES= pkg-message SUB_LIST+= GOOBJ=${GOOBJ} \ @@ -50,6 +51,7 @@ post-patch: do-build: cd ${WRKSRC}/src && \ + CC=${CC} \ GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go \ GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:L} \ ${SH} make.bash |