Created
February 3, 2010 00:19
-
-
Save tewk/293198 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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