mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-30 03:01:10 -09:00
The go stdlib "plugin" package relies on dlfcn.h which isn't available when we have BR2_STATIC_LIBS=y. Concentrate all cgo decision (including the existing threads part) under the config option BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS that has the proper depends. This should fix this build error from autobuilders: /buildroot/build/host-go-1.19.3/src/plugin/plugin_dlopen.go:11:10: fatal error: dlfcn.h: No such file or directory 11 | #include <dlfcn.h> Fixes: http://autobuild.buildroot.net/results/1f4/1f4b9882986b9df723a1446493d270c29287b505 http://autobuild.buildroot.net/results/a9d/a9de62374c948f773634c694a47abcaa2bc266d0 Signed-off-by: Anisse Astier <anisse@astier.eu> Reviewed-by: Christian Stewart <christian@paral.in> [Arnout: revert parts to v2, keeping most of the overall logic as it was] Signed-off-by: Arnout Vandecappelle <arnout@mind.be>