mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
golang: Add the ability to custom build environment
by overwrite the GoPackage/Environment definition Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
This commit is contained in:
@@ -147,7 +147,7 @@ define GoPackage/GoSubMenu
|
|||||||
CATEGORY:=Languages
|
CATEGORY:=Languages
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define GoPackage/Environment
|
define GoPackage/Environment/Default
|
||||||
GOOS=$(GO_OS) \
|
GOOS=$(GO_OS) \
|
||||||
GOARCH=$(GO_ARCH) \
|
GOARCH=$(GO_ARCH) \
|
||||||
GO386=$(GO_386) \
|
GO386=$(GO_386) \
|
||||||
@@ -160,6 +160,8 @@ define GoPackage/Environment
|
|||||||
CGO_CXXFLAGS="$(filter-out $(GO_CFLAGS_TO_REMOVE),$(TARGET_CXXFLAGS))"
|
CGO_CXXFLAGS="$(filter-out $(GO_CFLAGS_TO_REMOVE),$(TARGET_CXXFLAGS))"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
GoPackage/Environment=$(call GoPackage/Environment/Default,)
|
||||||
|
|
||||||
# false if directory does not exist
|
# false if directory does not exist
|
||||||
GoPackage/is_dir_not_empty=$$$$($(FIND) $(1) -maxdepth 0 -type d \! -empty 2>/dev/null)
|
GoPackage/is_dir_not_empty=$$$$($(FIND) $(1) -maxdepth 0 -type d \! -empty 2>/dev/null)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user