Browse Source

Merge pull request #10896 from jefferyto/golang-format-ldflags

golang: Format TARGET_LDFLAGS for gcc
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
7b6e55e200
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lang/golang/golang-package.mk

+ 1
- 1
lang/golang/golang-package.mk View File

@ -275,7 +275,7 @@ define GoPackage/Build/Compile
mips|mipsle) installsuffix="$(GO_MIPS)" ;; \
mips64|mips64le) installsuffix="$(GO_MIPS64)" ;; \
esac ; \
ldflags="-linkmode external -extldflags '$(TARGET_LDFLAGS)'" ; \
ldflags="-linkmode external -extldflags '$(TARGET_LDFLAGS:-z%=-Wl,-z,%)'" ; \
pkg_gcflags="$(GO_PKG_GCFLAGS)" ; \
pkg_ldflags="$(GO_PKG_LDFLAGS)" ; \
for def in $(GO_PKG_LDFLAGS_X); do \


Loading…
Cancel
Save