Date: Sun, 7 Dec 2014 09:25:00 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374178 - in head: databases/gosqlite3 lang/go/files Message-ID: <201412070925.sB79P0Hh083036@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sun Dec 7 09:25:00 2014 New Revision: 374178 URL: https://svnweb.freebsd.org/changeset/ports/374178 QAT: https://qat.redports.org/buildarchive/r374178/ Log: Fix build when compiler is clang Modified: head/databases/gosqlite3/Makefile head/lang/go/files/bsd.go.mk Modified: head/databases/gosqlite3/Makefile ============================================================================== --- head/databases/gosqlite3/Makefile Sun Dec 7 09:13:02 2014 (r374177) +++ head/databases/gosqlite3/Makefile Sun Dec 7 09:25:00 2014 (r374178) @@ -10,10 +10,15 @@ MASTER_SITES= LOCAL/jlaffaye MAINTAINER= lichray@gmail.com COMMENT= Go interface for SQLite3 +USES= compiler + LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3 GO_PKGNAME= github.com/kuroneko/${PORTNAME} .include <bsd.port.pre.mk> .include "${PORTSDIR}/lang/go/files/bsd.go.mk" +.if ${COMPILER_TYPE} == clang && ${CC} == cc +CC= clang +.endif .include <bsd.port.post.mk> Modified: head/lang/go/files/bsd.go.mk ============================================================================== --- head/lang/go/files/bsd.go.mk Sun Dec 7 09:13:02 2014 (r374177) +++ head/lang/go/files/bsd.go.mk Sun Dec 7 09:25:00 2014 (r374178) @@ -44,7 +44,7 @@ GO_WRKDIR_PKG= ${WRKDIR}/pkg/freebsd_${G BUILD_DEPENDS+= ${GO_CMD}:${PORTSDIR}/lang/go GO_ENV+= GOPATH="${WRKDIR}:${LOCAL_GOPATH}" \ CGO_CFLAGS="${CGO_CFLAGS}" \ - CGO_LDFLAGS="${CGO_LDFLAGS}" + CGO_LDFLAGS="${CGO_LDFLAGS}" \ PLIST_SUB+= GO_LIBDIR=${GO_LIBDIR} \ GO_SRCDIR=${GO_SRCDIR} \ GO_PKGNAME=${GO_PKGNAME} @@ -57,7 +57,7 @@ post-extract: .if !target(do-build) do-build: - @(cd ${GO_WRKSRC}; ${SETENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) + @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET}) .endif .if !target(do-install)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412070925.sB79P0Hh083036>