Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2005 13:30:49 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Maicon Stihler <mrkung@gmail.com>
Cc:        Ted Mittelstaedt <tedm@toybox.placo.com>
Subject:   Re: problem with GCC search path on FreeBSD5.3 AMD64
Message-ID:  <20050215213049.GA11287@xor.obsecurity.org>
In-Reply-To: <67f5afb905021510557e73eaf3@mail.gmail.com>
References:  <67f5afb90502141017bf2e58a@mail.gmail.com> <LOBBIFDAGNMAMLGJJCKNCEGOFAAA.tedm@toybox.placo.com> <67f5afb905021510557e73eaf3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
then.

> > ldconfig
>=20
> 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
object files.

> Im using the CFLAGS=3D"-B /usr/local/lib -L/usr/local/include" as a
> workaround, but im searching for a more elegant way to solve this
> issue.

Those flags look completely wrong.  You want "-L /usr/local/lib -I
/usr/local/include" - either in CFLAGS, or otherwise passed into your
gcc commandline.

This is the correct way to address the issue.

Kris

--X1bOJ3K7DJ5YkBrT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCEmoJWry0BWjoQKURAnubAKC79tFk4v8i+UxujDBh30rRz/SGhACeItpD
MR9s3YIIu/nF7WUbIQxfw1M=
=Fu71
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050215213049.GA11287>