… | |
… | |
185 | can specify additional libraries to provide these calls (and any other |
185 | can specify additional libraries to provide these calls (and any other |
186 | required by EV) now, or accept the default. |
186 | required by EV) now, or accept the default. |
187 | |
187 | |
188 | EOF |
188 | EOF |
189 | |
189 | |
190 | my $solaris_libs = $^O =~ /solaris/ ? " -lsocket -lnsl" : ""; |
190 | my $solaris_libs = $^O =~ /solaris/i ? "-lsocket -lnsl" : ""; |
|
|
191 | my $librt = $^O =~ /linux/i ? "-lpthread" : "-lpthread -lrt"; |
191 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "-lpthread -lrt$solaris_libs"; |
192 | my $LIBS = prompt "Extra libraries for pthread_atfork and clock_gettime?", "$librt $solaris_libs"; |
192 | |
193 | |
193 | |
194 | |
194 | print <<EOF; |
195 | print <<EOF; |
195 | |
196 | |
196 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
197 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |