mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Fix setup of lib directory with autogen.sh --system
On x86_64 hosts, /usr/lib64 must be used instead of /usr/lib Rather than attempt to whitelist architectures, just check for existance of /usr/lib64 * autogen.sh: Fix to use /usr/lib64 if it exists
This commit is contained in:
parent
e0e4e4de7a
commit
3493f1bcec
@ -21,7 +21,14 @@ if test "x$1" = "x--no-git"; then
|
|||||||
fi
|
fi
|
||||||
if test "x$1" = "x--system"; then
|
if test "x$1" = "x--system"; then
|
||||||
shift
|
shift
|
||||||
EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var"
|
prefix=/usr
|
||||||
|
libdir=$prefix/lib
|
||||||
|
sysconfdir=/etc
|
||||||
|
localstatedir=/var
|
||||||
|
if [ -d /usr/lib64 ]; then
|
||||||
|
libdir=$prefix/lib64
|
||||||
|
fi
|
||||||
|
EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
|
||||||
echo "Running ./configure with $EXTRA_ARGS $@"
|
echo "Running ./configure with $EXTRA_ARGS $@"
|
||||||
else
|
else
|
||||||
if test -z "$*" && test ! -f "$THEDIR/config.status"; then
|
if test -z "$*" && test ! -f "$THEDIR/config.status"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user