EXTUTILS::MKBOOTSTRAP(3pm)
π NAME π
okay bestie, this is ExtUtils::Mkbootstrap(3pm) from the Perl Programmers Reference Guide β the manual name is ExtUtils::Mkbootstrap, and its whole job is: make a bootstrap file for use by DynaLoader. periodt. π
β¨ SYNOPSIS β¨
the synopsis is literally just this one word, no cap:
Mkbootstrap
πΈ DESCRIPTION πΈ
okay so Mkbootstrap typically gets called from an extension Makefile. like, that's its natural habitat. π«Ά
real talk: there is no *.bs file supplied with the extension. instead, there may be a *_BS file which has code for the special cases, like posix for berkeley db on the NeXT. π
That *_BS file will get parsed and produce 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(). if this array still is empty, we do nothing β literally nothing, bestie π β else we write a .bs file with an @DynaLoader::dl_resolve_using array. slay.
the *_BS file can put some code into the generated *.bs file by placing it in $bscode. this is a handy 'escape' mechanism that may prove useful in complex situations. iconic little escape hatch, iykyk. π
and one more vibe check: if @DynaLoader::dl_resolve_using contains "-L*" or "-l*" entries, then Mkbootstrap will automatically add a dl_findfile() call to the generated *.bs file. π₯
mwah π that's the whole page β footer tea: perl v5.42.3, dated 2026-11-03, on the ExtUtils::Mkbootstrap(3pm) manual. bye bestie, go make that bootstrap file π¦π
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms