Subject: | -lc_r use in modern FreeBSD |
Modern FreeBSD systems use libpthread instead of libc_r, so my guess
would be to change inc/My/Build/Any_wx_config.pm in future release to
reflect that (see attached diff).
Subject: | inc-My-Build-Any_wx_config.pm.diff |
--- inc/My/Build/Any_wx_config.pm.orig 2009-03-03 17:05:39.041853122 +0000
+++ inc/My/Build/Any_wx_config.pm 2009-03-03 17:13:50.370718202 +0000
@@ -123,15 +123,13 @@
foreach ( split /\s+/, $libs ) {
m{^-[lL]|/} && do { $config{link_libraries} .= " $_"; next; };
- if( $_ eq '-pthread' && $^O =~ m/linux/i ) {
+ if( $_ eq '-pthread' && $^O =~ m/(?:linux|freebsd)/i ) {
$config{link_libraries} .= " -lpthread";
next;
}
$config{link_libraries} .= " $_";
}
- $config{link_libraries} .= ' -lc_r' if $^O =~ /freebsd/i;
-
my %dlls = %{$self->wx_config( 'dlls' )};
$config{_libraries} = {};