mirror of
https://github.com/openwrt/packages.git
synced 2026-02-04 12:06:29 +08:00
golang: don't set GO_LDSO
Don't set GO_LDSO as it's determined automatically at link time. Link: https://github.com/golang/go/issues/54197 Link: https://github.com/openwrt/packages/pull/28445 Suggested-by: Jeffery To <jeffery.to@gmail.com> Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
@@ -228,14 +228,6 @@ define Build/Compile
|
||||
|
||||
$(SED) '$(PKG_GO_ZBOOTSTRAP_MODS)' "$(PKG_GO_ZBOOTSTRAP_PATH)"
|
||||
|
||||
if echo 'int main() { return 0; }' | $(TARGET_CC) -o $(PKG_BUILD_DIR)/test-ldso -x c - > /dev/null 2>&1; then \
|
||||
LDSO=$$$$( \
|
||||
readelf -l $(PKG_BUILD_DIR)/test-ldso | \
|
||||
sed -n -e 's/^.*interpreter: \(.*\)[]]/\1/p' \
|
||||
) ; \
|
||||
fi ; \
|
||||
$(SED) "s,defaultGO_LDSO = \`[^\`]*\`,defaultGO_LDSO = \`$$$$LDSO\`," "$(PKG_GO_ZBOOTSTRAP_PATH)"
|
||||
|
||||
@echo "Building target Go second stage"
|
||||
|
||||
cd "$(PKG_BUILD_DIR)/bin" ; \
|
||||
|
||||
Reference in New Issue
Block a user