pkgconfiglib.req: use FindPackage to emit file-level dependencies on RPM_BUILD_ROOT libraries
This commit is contained in:
parent
cf62e1c09f
commit
b2b7954938
@ -8,6 +8,7 @@
|
|||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
|
|
||||||
. @RPMCONFIGDIR@/functions
|
. @RPMCONFIGDIR@/functions
|
||||||
|
. @RPMCONFIGDIR@/find-package
|
||||||
|
|
||||||
[ -n "${RPM_LIBDIR-}" ] || RPM_LIBDIR=`rpm --eval %_libdir`
|
[ -n "${RPM_LIBDIR-}" ] || RPM_LIBDIR=`rpm --eval %_libdir`
|
||||||
PKG_CONFIG_PATH=$RPM_LIBDIR/pkgconfig:/usr/share/pkgconfig
|
PKG_CONFIG_PATH=$RPM_LIBDIR/pkgconfig:/usr/share/pkgconfig
|
||||||
@ -73,8 +74,10 @@ PkgconfigLibReq()
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# The library is under RPM_BUILD_ROOT.
|
# The library is under RPM_BUILD_ROOT.
|
||||||
# Nothing is required. Do next lib.
|
# FindPackage will emit file-level dependency.
|
||||||
Verbose "$f: -l$lib -> \$RPM_BUILD_ROOT$rep (skip)"
|
Verbose "$f: -l$lib -> \$RPM_BUILD_ROOT$rep"
|
||||||
|
FindPackage "$f" "$rep"
|
||||||
|
# Do next lib.
|
||||||
continue 2
|
continue 2
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user