EXTUTILS::MKBOOTSTRAP(3perl)

πŸ’– NAME πŸ’–

ExtUtils::Mkbootstrap β€” bestie, this is the lil tool that makes a bootstrap file so DynaLoader can do its thing ✨


🌸 SYNOPSIS 🌸

Mkbootstrap

That's it. That's the whole synopsis. She's minimal, she's iconic πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen 🫢 Mkbootstrap typically gets called from an extension Makefile. Like, that's her natural habitat, that's where she shows up.

Here's the tea: there is no "*.bs" file supplied with the extension. Not a one. Instead, there may be a *_BS file, and that little cutie has code for the special cases β€” think posix for berkeley db on the NeXT. yeah. that kind of special case. iykyk πŸ’€

So this *_BS file will get parsed, and it produces a maybe-empty @DynaLoader::dl_resolve_using array for the current architecture. Then that array gets extended by $BSLOADLIBS, which was computed by ExtUtils::Liblist::ext(). okay so:

  • if this array is still empty β†’ we do literally nothing, respectfully, we simply vibe 🌈
  • else β†’ we write a .bs file with an @DynaLoader::dl_resolve_using array πŸŽ€

And here's the cute part: the *_BS file can put some code into the generated "*.bs" file by placing it in $bscode. It's a handy 'escape' mechanism that may prove useful in complex situations πŸ”₯ think of it as a secret backstage pass, no cap.

Also! If @DynaLoader::dl_resolve_using contains "-L*" or "-l*" entries, then Mkbootstrap will automatically add a dl_findfile() call to the generated "*.bs" file. automatic. she just does it. main character energy fr fr πŸ‘‘

heads up bestie: the "-L*" and "-l*" thing is a string-prefix match, so those exact entries are what triggers the auto dl_findfile() β€” don't be out here writing -L without the * and expecting the same glow-up πŸ’–

πŸ’œ SEE ALSO πŸ’œ

nope, nothing here β€” the original page doesn't list any cross-references, so we are not inventing any. periodt 🧚


okay that's the whole page!! πŸŽ€ ExtUti...otstrap(3perl) β€” she's from the Perl Programmers Reference Guide, she's riding along with perl v5.44.0, and that version stamp is dated 2026-10-17 πŸ’« go forth, build your bootstrap file, and slay πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms