port-resolve-lib-helper(1)

port-resolve-lib-helper1

Resolve library specs during ports build

Usage

port-resolve-lib-helper [-needed] [-silent] spec ...

Overview

port-resolve-lib-helper resolve library specs against a list of installed libraries. port-resolve-lib-helper takes a list of file names with full path on stdin, and matches each library spec against those libraries, using library-specs(7) conventions.

In particular, X11BASE and LOCALBASE are used to locate X11 libraries and port libraries.

port-resolve-lib-helper will print the best libraries found in a format suitable for @wantlib( see pkg_create(1)).

Each spec not found will result in an error message and exit code.

If the option -silent is used, nothing will be displayed.

The option -needed is used to sort out LIB_DEPENDS: port-resolve-lib-helper will succeed if at least one of the libraries matches against a shared library passed on the command line.

This is a helper script used by bsd.port.mk(5) to complete all wantlib information for pkg_create(1) and other tools.

Releases

Unchanged in 18 releases since OpenBSD 6.4.

  1. 6.4–8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.