@ -211,6 +211,7 @@ define GoPackage/Build/Configure
)
)
e n d e f
e n d e f
# $(1) additional arguments for go command line (optional)
d e f i n e G o P a c k a g e / B u i l d / C o m p i l e
d e f i n e G o P a c k a g e / B u i l d / C o m p i l e
( \
( \
cd $( GO_PKG_BUILD_DIR) ; \
cd $( GO_PKG_BUILD_DIR) ; \
@ -228,7 +229,7 @@ define GoPackage/Build/Compile
done ; \
done ; \
\
\
if [ " $( GO_PKG_GO_GENERATE) " = 1 ] ; then \
if [ " $( GO_PKG_GO_GENERATE) " = 1 ] ; then \
go generate -v $$ $$ targets ; \
go generate -v $( 1) $$ $$ targets ; \
fi ; \
fi ; \
\
\
if [ " $( GO_PKG_SOURCE_ONLY) " != 1 ] ; then \
if [ " $( GO_PKG_SOURCE_ONLY) " != 1 ] ; then \
@ -238,7 +239,14 @@ define GoPackage/Build/Compile
esac ; \
esac ; \
trimpath = " all=-trimpath= $( GO_PKG_BUILD_DIR) " ; \
trimpath = " all=-trimpath= $( GO_PKG_BUILD_DIR) " ; \
ldflags = " all=-linkmode external -extldflags ' $( TARGET_LDFLAGS) ' " ; \
ldflags = " all=-linkmode external -extldflags ' $( TARGET_LDFLAGS) ' " ; \
go install $$ $$ installsuffix -gcflags " $$ $$ trimpath " -asmflags " $$ $$ trimpath " -ldflags " $$ $$ ldflags " -v $$ $$ targets ; \
go install \
$$ $$ installsuffix \
-gcflags " $$ $$ trimpath " \
-asmflags " $$ $$ trimpath " \
-ldflags " $$ $$ ldflags " \
-v \
$( 1) \
$$ $$ targets ; \
retval = $$ $$ ? ; \
retval = $$ $$ ? ; \
\
\
if [ " $$ $$ retval " -eq 0 ] && [ -z " $( call GoPackage/has_binaries) " ] ; then \
if [ " $$ $$ retval " -eq 0 ] && [ -z " $( call GoPackage/has_binaries) " ] ; then \