mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
golang: Format TARGET_LDFLAGS for gcc
go invokes the external linker by calling gcc, so -zxxx options in
TARGET_LDFLAGS (in golang-package.mk) need to be formatted as -Wl,z,xxx.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from dbd6f224c3)
This commit is contained in:
@@ -275,7 +275,7 @@ define GoPackage/Build/Compile
|
|||||||
mips|mipsle) installsuffix="$(GO_MIPS)" ;; \
|
mips|mipsle) installsuffix="$(GO_MIPS)" ;; \
|
||||||
mips64|mips64le) installsuffix="$(GO_MIPS64)" ;; \
|
mips64|mips64le) installsuffix="$(GO_MIPS64)" ;; \
|
||||||
esac ; \
|
esac ; \
|
||||||
ldflags="-linkmode external -extldflags '$(TARGET_LDFLAGS)'" ; \
|
ldflags="-linkmode external -extldflags '$(TARGET_LDFLAGS:-z%=-Wl,-z,%)'" ; \
|
||||||
pkg_gcflags="$(GO_PKG_GCFLAGS)" ; \
|
pkg_gcflags="$(GO_PKG_GCFLAGS)" ; \
|
||||||
pkg_ldflags="$(GO_PKG_LDFLAGS)" ; \
|
pkg_ldflags="$(GO_PKG_LDFLAGS)" ; \
|
||||||
for def in $(GO_PKG_LDFLAGS_X); do \
|
for def in $(GO_PKG_LDFLAGS_X); do \
|
||||||
|
|||||||
Reference in New Issue
Block a user