From c451cc40654f8833451c2548adacaf329252f17c Mon Sep 17 00:00:00 2001 From: Alex Belykh Date: Fri, 6 May 2011 03:22:57 +0700 Subject: [PATCH] Make Fuse.so build without --as-needed flag. This patch negates --as-needed flag, which prevents the library from building with properly versioned symbols, which leads to incorrect dynamic-linking with fuse.so at run-time. --- Makefile.PL | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 1522ff5..136f147 100644 --- a/Makefile.PL +++ b/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 { -- 1.7.3.4