On 2009/02/24 11:55, Toni Mueller wrote: > > I've discovered that, if I start out installing systems "small" (eg. > w/o packages, and w/o xbase), ld doesn't know where to find a lot of > the required libraries. When I install a package, I usually want to run > the associated software without further tweaking, but before I can do > so, I have to first go around and manually run something like > > # ldconfig -m /usr/X11R6/lib > > and/or > > # ldconfig -m /usr/local/lib > > to get things going. I thought that this could be automated somehow. > Eg, while parsing the PLIST files, if there are directories not already > known to ld, merge appropriate directories on the fly. > > Just a thought...
Installing OpenBSD base*.tgz already gives you /usr/local/lib, so when /etc/rc is run, that path is added for you. You can't add /usr/X11R6/lib from packages, only by installing the xbase set, and re-running ldconfig after that is a required step. http://www.openbsd.org/faq/faq4.html#AddFileSet
