package/pkg-golang: do not set static linking for host target
authorMirza Krak <mirza.krak@northern.tech>
Mon, 10 Jun 2019 15:40:07 +0000 (17:40 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 10 Jun 2019 18:44:08 +0000 (20:44 +0200)
commit60d455f20b9c656c2a23ce4e8dc03719e55f7453
treef8353f8bae12acf0fab4951433d7b53a40e97f71
parent19ba3c56f51c0588d7d02d8d3be5cfa2872d1097
package/pkg-golang: do not set static linking for host target

The current logic will set the "-static" flag when building go
host packages if BR2_STATIC_LIBS is set, this will not work as
there is no support to link host packages statically.

Fix this by applying this logic only for target builds.

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/pkg-golang.mk