| CHECK-LIB-DEPENDS(1) | General Commands Manual | CHECK-LIB-DEPENDS(1) |
check-lib-depends —
scan port for shared libraries
check-lib-depends |
[-fimqx] [-B
destdir] [-d
pkgrepo] [-D
directory] [-F
missing] [-O
dest] [-S
VAR=value]
[-s source]
[package ...] |
check-lib-depends scans a port or package
for shared libraries, and verify that all of them are properly recorded.
check-lib-depends can either scan files
from a built port after the fake stage from the
WRKINST directory, or look directly inside a
package.
Likewise, it can also verify dependencies of installed packages, or figure them out directly from the port directory.
check-lib-depends actually consists of two
distinct stages:
The options are as follows:
-B
destdir-d
pkgrepo-D
directory-f-F
missing-S. Allow backsubstituting
even if the missing library is actually not part of
the actual WANTLIB of the package. Mostly used to
waive the presence of pthread, a mandatory
dependency of C++ libraries on some architectures.-i-m-O
dest-q-S
var=value-S
COMPILER_LIBCXX=stdc++ will
replace ‘stdc++’ with ‘${COMPILER_LIBCXX}’ in
WANTLIB lists for compatibility with both clang
and gcc. Order matters. The first -S option will
be handled first.-s
src-xIf no package is given, and the
-i option is used,
check-lib-depends will retrieve the packing-list
from stdin, and scan the package according to other options.
Currently, check-lib-depends doesn't
handle libraries living in subdirectories of ‘${LOCALBASE}’
correctly.
| May 24, 2024 | openbsd |