mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
14 lines
326 B
Bash
14 lines
326 B
Bash
|
#!/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/.*-//'
|