@@ -, +, @@ --- Makefile.PL | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- a/Makefile.PL +++ a/Makefile.PL @@ -34,6 +34,8 @@ my $def = '-Wall -g -ggdb'; $def .= ' -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64' if $^O eq 'darwin'; $def .= ' -DPERL_HAS_64BITINT' if $Config{'use64bitint'}; +my %mconf = ('LDDLFLAGS' => "$Config{lddlflags} -Wl,--no-as-needed"); + WriteMakefile( 'NAME' => 'Fuse', 'VERSION_FROM' => 'Fuse.pm', # finds $VERSION @@ -55,6 +57,7 @@ WriteMakefile( 'INC' => $inc, # e.g., '-I/usr/include/other' # Un-comment this if you add C files to link with later: 'OBJECT' => "$obj Fuse.o -lpthread", # link all the C files too + 'CONFIGURE' => sub{ return \%mconf; }, # fix linking to specific symbols in FUSE ); sub MY::postamble { --