Skip to content

Instantly share code, notes, and snippets.

@tewk
Created February 3, 2010 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tewk/293198 to your computer and use it in GitHub Desktop.
Save tewk/293198 to your computer and use it in GitHub Desktop.
diff --git a/config/auto/thread.pm b/config/auto/thread.pm
index ea2f2a3..33e1fe1 100644
--- a/config/auto/thread.pm
+++ b/config/auto/thread.pm
@@ -40,6 +40,11 @@ sub runstep {
if ($without) {
$conf->data->set( HAS_THREADS => 0 );
+ my $libs = $conf->data->get( 'libs' );
+ print "BEFORE $libs\n";
+ $libs =~ s/-lpthread\b//;
+ $conf->data->set( 'libs' => $libs );
+ print "AFTER $libs\n";
$self->set_result('no');
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment