mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: installcheck: Ensure libguestfs.so is copied.
If you ran 'make installcheck' when libguestfs-devel was not installed, then the installcheck would fail in many places with: gcc: error: ../../src/.libs/libguestfs.so: No such file or directory We should stop the installcheck script immediately if the .so file was not found. Also this commit ensures that src/.libs/libguestfs.so* not existing before installcheck is not fatal.
This commit is contained in:
@@ -35,8 +35,10 @@ exec_prefix=@exec_prefix@
|
||||
find -name 'lt-*' | grep '/.libs/lt-' | xargs -r rm
|
||||
|
||||
# Copy the installed library into libtool directory.
|
||||
rm src/.libs/libguestfs.so*
|
||||
cp @libdir@/libguestfs.so* src/.libs/
|
||||
rm -f src/.libs/libguestfs.so*
|
||||
cp @libdir@/libguestfs.so src/.libs/
|
||||
cp @libdir@/libguestfs.so.0 src/.libs/
|
||||
cp @libdir@/libguestfs.so.0.* src/.libs/
|
||||
|
||||
# Copy installed binaries into the right places.
|
||||
cp @bindir@/libguestfs-test-tool test-tool/
|
||||
|
||||
Reference in New Issue
Block a user