We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0f29f commit 7570c43Copy full SHA for 7570c43
proc/12-arch-flags.sh
@@ -87,6 +87,14 @@ ab_arch_setflags() {
87
declare -n _tmp="_${flagtype}"
88
export "${flagtype}"="${_tmp[*]}"
89
abdbg "${flagtype}=${_tmp[*]}"
90
+ # export CGO counterparts for CFLAGS, CXXFLAGS, and LDFLAGS.
91
+ # see <https://go.dev/src/cmd/cgo/doc.go>.
92
+ case "${flagtype}" in
93
+ CFLAGS|CXXFLAGS|LDFLAGS)
94
+ export "CGO_${flagtype}"="${_tmp[*]}"
95
+ abdbg "CGO_${flagtype}=${_tmp[*]}"
96
+ ;;
97
+ esac
98
99
# Do the same thing if HWCAPS is enabled
100
if bool "$hwcaps_active" ; then
0 commit comments