Index: Glib-1.141/Makefile.PL --- Glib-1.141/Makefile.PL.orig 2005-10-18 18:39:44 +0200 +++ Glib-1.141/Makefile.PL 2006-01-02 16:28:17 +0100 @@ -112,6 +112,8 @@ # this will be inherited by dependant modules, so they can find their # generated files. $glib->set_inc ($glibcfg{cflags} . $gthreadcfg{cflags} . ' -I. '); +$gthreadcfg{libs} =~ s/-pthread/-lpthread/sg; +$gthreadcfg{libs} =~ s/(-lpthread)(.+)$/$2$1/s; $glib->set_libs ($glibcfg{libs} . $gthreadcfg{libs}); my $cwd = cwd(); $glib->add_typemaps (map {File::Spec->catfile($cwd,$_)} 'typemap');