Browse Source

Merge pull request #9209 from kuoruan/golang-environment

golang: Add the ability to custom build environment
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
96908de413
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lang/golang/golang-package.mk

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

@ -147,7 +147,7 @@ define GoPackage/GoSubMenu
CATEGORY:=Languages
endef
define GoPackage/Environment
define GoPackage/Environment/Default
GOOS=$(GO_OS) \
GOARCH=$(GO_ARCH) \
GO386=$(GO_386) \
@ -160,6 +160,8 @@ define GoPackage/Environment
CGO_CXXFLAGS="$(filter-out $(GO_CFLAGS_TO_REMOVE),$(TARGET_CXXFLAGS))"
endef
GoPackage/Environment=$(call GoPackage/Environment/Default,)
# false if directory does not exist
GoPackage/is_dir_not_empty=$$$$($(FIND) $(1) -maxdepth 0 -type d \! -empty 2>/dev/null)


Loading…
Cancel
Save