litespeed-quic/print-glibc-version.sh
Dmitri Tikhonov ccd741616f Latest changes
- 1.10.1
- [BUGFIX]  process connections after each batch of packets is read
  This avoids a problem of accumulating a very large list of packets
  (possible when speeds are high and socket's receive buffer is large)
  and processing it all at once.
- If glibc is older than 2.17, link with rt.  This is necessary for
  clock_getres(2).
- Add version macros to lsquic.h; remove unnecessary includes.
2018-07-10 11:51:45 -04:00

13 lines
326 B
Bash
Executable file

#!/bin/sh
#
# Determine glibc version and print it to stdout. I have to resort to
# using a shell script because it is taking too long to figure out how
# to do this properly in cmake.
CC=$1
if [ "" = "$CC" ]; then
CC=gcc
fi
$CC -print-file-name=libc.so.6 \
| perl -plne '$_ = readlink if -H; s/\.so$// && s/.*-//'