Commit graph

16 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
1b4965758d Require Go 1.10 or later
Debian stable now ships with Go 1.11, and 1.11 are available for
oldstable through backports. Keeping compatibility with older versions
seems unnecessary.

Users are adviced to use the latest stable Go version.

Closes #122
2019-12-09 00:04:41 +01:00
Martin Hebnes Pedersen
64a17b5f59 Fix gitrev build argument for Go 1.10
On Go 1.10 the -ldflags should only apply to packages explicitly listed in the
packages list of the build command. It is probably a bug that the ldflags option
does not apply when omitting the package name (go build) on Linux.

https://github.com/golang/go/issues/24310
2018-04-21 12:47:03 +02:00
Martin Hebnes Pedersen
8ddb42c686 Update libax25 dist URL for build script
www.linux-ax25.org is currently down for unknown reasons. Use a debian
mirror, which should be more stable.
2018-04-21 11:53:10 +02:00
Martin Hebnes Pedersen
ff5f76f2d6 make.bash: Fix Go version check 2018-02-17 21:36:54 +01:00
Martin Hebnes Pedersen
e7f4ba2994 Use GOOS to determine build OS in make.bash
This will make it more convenient to cross-compile using make.bash
2017-12-06 20:22:55 +01:00
Martin Hebnes Pedersen
a1cb232f98 Don't build with system installed static libax25
A new debian policy restricts the use of fPIC compiled static libraries,
which is (apparently) required by cgo. libax25 in Debian Stretch is
built without fPIC, so we can't use it anymore.

I've included a function in make.bash that downloads and compiles
libax25 to use when building the static Pat binary. Users can use the
env variable CGO_LDFLAGS to specify a custom libax25.a path.
2017-08-12 01:54:24 +02:00
Martin Hebnes Pedersen
6ac68737dd Link libax25 statically (linux only)
Closes #59
2016-09-19 20:04:54 +02:00
Martin Hebnes Pedersen
d611b270e3 make.bash: Enable libax25 on Linux by default 2016-09-19 20:03:42 +02:00
Martin Hebnes Pedersen
db87f22b5e make.bash: Fix VERSION variable 2016-09-12 20:05:43 +02:00
Martin Hebnes Pedersen
cdad92f6cf make.bash: Build pkg on darwin if tool is available 2016-09-12 18:23:16 +02:00
Martin Hebnes Pedersen
b44887d9ee Update submodules on build 2016-05-07 22:10:47 +02:00
Martin Hebnes Pedersen
5dfaca90c9 Fix Go 1.5 build 2016-02-22 22:56:59 +01:00
Martin Hebnes Pedersen
f5568be99f Simplify make.bash and test wl2k-go 2016-02-22 21:54:32 +01:00
Martin Hebnes Pedersen
c8d8be1b47 cmd/wl2k: Fix build, take 2 2015-11-01 22:10:22 +01:00
Martin Hebnes Pedersen
a5937ba264 cmd/wl2k: Fix make.bash with Go < 1.5 2015-11-01 21:56:16 +01:00
Martin Hebnes Pedersen
66695a158a cmd/wl2k: Add version command.
This also includes a make.bash script to insert current git rev hash into the built binary.

Closes #18
2015-10-31 13:16:27 +01:00