From: Marc Lehmann Date: Thu, 8 May 2003 00:42:18 +0000 (+0000) Subject: [perl #22141] patch for Time::HiRes to get rid of -lrt on linux X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a08a6ab91582d74e16135fa1c131885305144d0;p=p5sagit%2Fp5-mst-13.2.git [perl #22141] patch for Time::HiRes to get rid of -lrt on linux From: Marc Lehmann (via RT) Message-Id: Date: 8 May 2003 00:42:18 -0000 p4raw-id: //depot/perl@19449 --- diff --git a/ext/Time/HiRes/Changes b/ext/Time/HiRes/Changes index f945296..bdf5418 100644 --- a/ext/Time/HiRes/Changes +++ b/ext/Time/HiRes/Changes @@ -1,5 +1,11 @@ Revision history for Perl extension Time::HiRes. +1.47 + - do not use -lrt in Linux (from March Lehmann) + - unnecessary (nanosleep is in libc anyway) + - harmful (-lrt slows down execution) + - incompatible (with many distributions' pthreads) + 1.46 - do not create files in blib directories under core (perl change #19160, from rgs) diff --git a/ext/Time/HiRes/HiRes.pm b/ext/Time/HiRes/HiRes.pm index 7296185..f4c2c80 100644 --- a/ext/Time/HiRes/HiRes.pm +++ b/ext/Time/HiRes/HiRes.pm @@ -15,7 +15,7 @@ require DynaLoader; d_usleep d_ualarm d_gettimeofday d_getitimer d_setitimer d_nanosleep); -$VERSION = '1.46'; +$VERSION = '1.47'; $XS_VERSION = $VERSION; $VERSION = eval $VERSION; diff --git a/ext/Time/HiRes/Makefile.PL b/ext/Time/HiRes/Makefile.PL index 1fea0de..dfcbce3 100644 --- a/ext/Time/HiRes/Makefile.PL +++ b/ext/Time/HiRes/Makefile.PL @@ -225,8 +225,8 @@ sub unixinit { $LIBS = ['-lc'] if $Config{'osname'} =~ /dynixptx/i; # For nanosleep - push @$LIBS, '-lrt' unless $Config{'osname'} =~ /irix/; - push @$LIBS, '-lposix4' ; + push @$LIBS, '-lrt' unless $Config{'osname'} =~ /^(?:irix|linux)$/; + push @$LIBS, '-lposix4'; my @goodlibs;