mirror of
https://github.com/sheumann/hush.git
synced 2025-01-13 21:31:51 +00:00
When cross-compiling, the install directory for shared libraries has to come
from gcc (target machine), not uname (host machine).
This commit is contained in:
parent
787140df39
commit
d1968672ef
@ -18,11 +18,12 @@ esac
|
|||||||
|
|
||||||
if [ "$DO_INSTALL_LIBS" != "n" ]; then
|
if [ "$DO_INSTALL_LIBS" != "n" ]; then
|
||||||
# get the target dir for the libs
|
# get the target dir for the libs
|
||||||
# This is an incomplete/incorrect list for now
|
# assume it starts with lib
|
||||||
case $(uname -m) in
|
libdir=$($CC -print-file-name=libc.so | \
|
||||||
x86_64|ppc64*|sparc64*|ia64*|hppa*64*|s390x*) libdir=/lib64 ;;
|
sed -n 's%^.*\(/lib[^\/]*\)/libc.so%\1%p')
|
||||||
*) libdir=/lib ;;
|
if test -z "$libdir"; then
|
||||||
esac
|
libdir=/lib
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $prefix/$libdir || exit 1
|
mkdir -p $prefix/$libdir || exit 1
|
||||||
for i in $DO_INSTALL_LIBS; do
|
for i in $DO_INSTALL_LIBS; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user