ExtUtil...ymlists(3)
π NAME π
okay so this is the ExtUtil...ymlists(3) page from User Contributed Perl Documentation, and the module it's about is ExtUtils::Mksymlists β literally the thing that writes linker options files for dynamic extension. bestie, that's the whole name-line vibe and we're keeping it π
β¨ SYNOPSIS β¨
here's the group-chat screenshot of how you call it:
use ExtUtils::Mksymlists;
Mksymlists( NAME => $name ,
DL_VARS => [ $var1, $var2, $var3 ],
DL_FUNCS => { $pkg1 => [ $func1, $func2 ],
$pkg2 => [ $func3 ] );
πΈ DESCRIPTION πΈ
okay so ExtUtils::Mksymlists produces files used by the linker under some OSs during the creation of shared libraries for dynamic extensions. It is normally called from a MakeMaker-generated Makefile when the extension is built. The linker option file is generated by calling the function Mksymlists, which is exported by default from ExtUtils::Mksymlists. It takes one argument, a list of key-value pairs, in which the following keys are recognized:
DLBASEβ this item specifies the name by which the linker knows the extension, which may be different from the name of the extension itself (for instance, some linkers add an'_'to the name of the extension). If it is not specified, it is derived from theNAMEattribute. It is presently used only by OS2 and Win32 π οΈDL_FUNCSβ this is identical to theDL_FUNCSattribute available via MakeMaker, from which it is usually taken. Its value is a reference to an associative array, in which each key is the name of a package, and each value is a reference to an array of function names which should be exported by the extension. For instance, one might sayDL_FUNCS => { Homer::Iliad => [ qw(trojans greeks) ], Homer::Odyssey => [ qw(travellers family suitors) ] }. The function names should be identical to those in the XSUB code;Mksymlistswill alter the names written to the linker option file to match the changes made byxsubpp. In addition, if none of the functions in a list begin with the stringboot_,Mksymlistswill add a bootstrap function for that package, just asxsubppdoes. (If aboot_<pkg>function is present in the list, it is passed through unchanged.) IfDL_FUNCSis not specified, it defaults to the bootstrap function for the extension specified inNAME. this is a lot but it's iconic πDL_VARSβ this is identical to theDL_VARSattribute available via MakeMaker, and, likeDL_FUNCS, it is usually specified via MakeMaker. Its value is a reference to an array of variable names which should be exported by the extension π§FILEβ this key can be used to specify the name of the linker option file (minus the OS-specific extension), if for some reason you do not want to use the default value, which is the last word of theNAMEattribute (e.g. forTk::Canvas,FILEdefaults toCanvas) ποΈFUNCLISTβ this provides an alternate means to specify function names to be exported from the extension. Its value is a reference to an array of function names to be exported by the extension. These names are passed through unaltered to the linker options file. Specifying a value for theFUNCLISTattribute suppresses automatic generation of the bootstrap function for the package. To still create the bootstrap name you have to specify the package name in theDL_FUNCShash:
Mksymlists( NAME => $name ,
FUNCLIST => [ $func1, $func2 ],
DL_FUNCS => { $pkg => [] } );
IMPORTSβ this attribute is used to specify names to be imported into the extension. It is currently only used by OS/2 and Win32 π₯NAMEβ this gives the name of the extension (e.g.Tk::Canvas) for which the linker option file will be produced π
when calling Mksymlists, one should always specify the NAME attribute. In most cases, this is all that's necessary. In the case of unusual extensions, however, the other attributes can be used to provide additional information to the linker. no cap, NAME is the main character here β¨
π AUTHOR π
shoutout to Charles Bailey <bailey@newman.upenn.edu> for this one π«Ά
π°οΈ REVISION π°οΈ
last revised 14-Feb-1996, for Perl 5.002. vintage behavior fr fr πΎ
cute sign-off: this page comes from perl v5.42.0, dated 2023-04-04, and it's the ExtUtil...ymlists(3) manual page β byeeee, bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-ExtUtils-MakeMaker 7.70-160000.2.2 Β· Artistic-1.0 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