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
.bsfile with an@DynaLoader::dl_resolve_usingarray π
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 autodl_findfile()β don't be out here writing-Lwithout 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