problem with GCC search path on FreeBSD5.3 AMD64
kris at obsecurity.org
Tue Feb 15 21:30:51 GMT 2005
On Tue, Feb 15, 2005 at 03:55:00PM -0300, Maicon Stihler wrote:
> > this isn't a gcc problem.
> Hm, maybe I used the wrong terms to define the situation. I agree that
> its not gcc's fault, its some kind of (mis)configuration issue.
Didn't you ask this question a few weeks ago? I certainly answered it
> > ldconfig
> I used ldconfig to generete te hints file, and then when I do a
> "ldconfig -r" all the libs I need appears there... the strange thing
> is that if I try to include them in my own programs it doesnt work.
ldconfig is for the runtime linker, it's not used by gcc when linking
> Im using the CFLAGS="-B /usr/local/lib -L/usr/local/include" as a
> workaround, but im searching for a more elegant way to solve this
Those flags look completely wrong. You want "-L /usr/local/lib -I
/usr/local/include" - either in CFLAGS, or otherwise passed into your
This is the correct way to address the issue.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050215/e0f919d7/attachment.bin
More information about the freebsd-questions