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 04cd717 commit c7248a0Copy full SHA for c7248a0
src/cmd/link/internal/ld/lib.go
@@ -533,7 +533,10 @@ func (ctxt *Link) loadlib() {
533
// up symbol by name may not get expected result.
534
535
iscgo = ctxt.LibraryByPkg["runtime/cgo"] != nil
536
- ctxt.canUsePlugins = ctxt.LibraryByPkg["plugin"] != nil
+
537
+ // Plugins a require cgo support to function. Similarly, plugins may require additional
538
+ // internal linker support on some platforms which may not be implemented.
539
+ ctxt.canUsePlugins = ctxt.LibraryByPkg["plugin"] != nil && iscgo
540
541
// We now have enough information to determine the link mode.
542
determineLinkMode(ctxt)
0 commit comments