golang: Simplify target compile
authorJeffery To <jeffery.to@gmail.com>
Wed, 2 Sep 2020 13:22:15 +0000 (21:22 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 6 Oct 2020 08:28:08 +0000 (16:28 +0800)
commit93ee27edb8785514142633d41a973a8c5ca79e4c
treec653349addeb0be21fd184e4a2380b2cb2ee073f
parent03a1f875496d11e7f3fbba8c148ef33969f6ec03
golang: Simplify target compile

* Reuse GO_PKG_ENABLE_PIE from golang-package.mk
* Replace $(if ...) with $(or ...) to get default values
* Refactor vars common to each compile stage into variable

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/golang/golang/Makefile