ld and libraries troubles (newbie).

Joshua Oreman oremanj at webserver.get-linux.org
Mon Jul 7 17:51:48 PDT 2003


On Tue, Jul 08, 2003 at 01:43:40AM +0100 or thereabouts, lewiz wrote:
> Hi,
> 
>   I'm fairly new to porting (as you'll probably figure out with the body
> of my question :) and am having a few troubles (I believe to be with
> ld/ldconfig and search paths, etc.).
> 
>   I'm attempting to create a port for Dasher (a text-input solution),
> which requires expat and libintl to configure/compile (in that order).
> For some reason it does not find libexpat (ld: cannot find -lexpat),
> which is available in /usr/local/lib.  I created a symlink to /usr/lib
> and it worked, but then failed when make got to libintl.a (in
> /usr/local).  I've done my best to read the Porter's Handbook
> (especially the chapter on Dependencies) but this has been of little
> help.  Any pointers in the right direction would be greatly appreciated!

DON'T depend on symlinking libraries, since when the port installs the
end user might not have those symlinks.

Add -L/usr/local/lib to the link line in the Makefile. Make a patch
to do this.

-- Josh

> 
>   Thanks very much,
> 
> -lewiz.
> 
> -- 
> It is much easier to suggest solutions when you know nothing about the
> problem.
> ------------------------------------------------------------------------
> -| msn:purple at lewiz.net | jab:lewiz at jabber.org | url:http://lewiz.net |-




More information about the freebsd-ports mailing list