mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
http://julialang.org/ A high-level, high-performance dynamic language for technical computing.
19 lines
539 B
Bash
Executable file
19 lines
539 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# This script adapts output of scanelf to the format produced by
|
|
# GNU's "ldconfig -p".
|
|
#
|
|
# Note: Julia uses "ldconfig -p" as a workaround to find system
|
|
# libraries, see https://github.com/JuliaLang/julia/issues/6742.
|
|
#
|
|
set -e
|
|
|
|
echo 'libs found on ldpath'
|
|
scanelf --ldpath -E ET_DYN -BF '%F %M %S %f' | while read path class soname _; do
|
|
case "$class" in
|
|
ELFCLASS32) arch='i686';;
|
|
ELFCLASS64) arch='x86-64';;
|
|
*) arch="$(uname -m | sed 's/_/-/g')";;
|
|
esac
|
|
printf '\t%s (libc,%s) => %s\n' "$soname" "$arch" "$path"
|
|
done
|