freebsd-ports/databases/p5-Memcached-libmemcached/files/extra-patch-Makefile.PL
Steve Wills 054d194d68 databases/p5-Memcached-libmemcached: improve patch
The patch to Makefile.PL needed to also replace $Config{lib_ext} (which
defaults to ".a") with ".so" so that we link against the right thing. This
avoids the need to patch databases/libmemcached.

While here, also avoid hard coding the path to PREFIX and split out the
libstdc++ to libc++ patch, avoiding duplication.

Pointyhat to:		swills
Reported by:		tijl, bapt
2015-07-01 01:03:03 +00:00

11 lines
475 B
Perl

--- Makefile.PL.orig 2015-05-07 17:56:22 UTC
+++ Makefile.PL
@@ -54,7 +54,7 @@ if (my $gccversion = $Config{gccversion}
$opts{DEFINE} .= ' -Wmissing-prototypes';
}
}
-$opts{LIBS} = ["-lstdc++"]; # else error: libmemcached.so: undefined symbol: __gxx_personality_v0
+$opts{LIBS} = ["-lc++"]; # else error: libmemcached.so: undefined symbol: __gxx_personality_v0
$opts{OPTIMIZE} = "-g" if $opt_g;
$opts{CCFLAGS} = "-pg" if $opt_pg;
my $coverage_flags = "";