1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/testing/julia/find-syslibs
Jakub Jirutka 306b71cdc1 testing/julia: new abuild
http://julialang.org/
A high-level, high-performance dynamic language for technical computing.
2016-06-09 19:26:06 +02:00

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