mirror of
https://git.proxmox.com/git/perlmod
synced 2025-10-04 09:08:06 +00:00
adjust path for DynaLoader
We usually have multiple packages but only a single library, so rather than making package look in subdirectories named after them, just look in the toplevel `auto/` directory. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a3361698b3
commit
740eda0643
@ -35,10 +35,9 @@ BEGIN {
|
||||
|
||||
my ($pkg) = @_;
|
||||
|
||||
my $auto_path = ($pkg =~ s!::!/!gr);
|
||||
my ($mod_name) = {{LIB_NAME}};
|
||||
|
||||
my @dirs = (map "-L$_/auto/$auto_path", @INC);
|
||||
my @dirs = (map "-L$_/auto", @INC);
|
||||
my (@mod_files) = DynaLoader::dl_findfile(@dirs"#;
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
|
Loading…
Reference in New Issue
Block a user