Skip to content

Allow building on FreeBSD#3

Merged
mdevan merged 1 commit intorapidloop:masterfrom
girgen:simply-build-on-freebsd
Mar 6, 2018
Merged

Allow building on FreeBSD#3
mdevan merged 1 commit intorapidloop:masterfrom
girgen:simply-build-on-freebsd

Conversation

@girgen
Copy link
Copy Markdown
Contributor

@girgen girgen commented Mar 6, 2018

I just copied the Empty file from Darwin to get through the build.

I've created an offical port for FreeBSD as well, so perhaps you could add the instruction to install in FreeBSD as pkg install pgmetrics?

@mdevan mdevan merged commit 0fc7f0b into rapidloop:master Mar 6, 2018
@mdevan
Copy link
Copy Markdown
Contributor

mdevan commented Mar 6, 2018

In your port Makefile, please build the binary with these flags:

CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${PORTVERSION}" ./cmd/pgmetrics

These are from the .goreleaser.yml file and the goreleaser defaults.

[Edit: fixed -ldflags]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants