Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2008 21:01:21 +0100
From:      Tijl Coosemans <tijl@ulyssis.org>
To:        freebsd-hackers@freebsd.org, stevefranks@ieee.org
Subject:   Re: includes, configure, /usr/lib vs. /usr/local/lib, and linux coders
Message-ID:  <200810312101.22605.tijl@ulyssis.org>
In-Reply-To: <539c60b90810311230i11460966la7ff35b0093642ec@mail.gmail.com>
References:  <539c60b90810311123w2aa94b8akcd0a5d0fe791885a@mail.gmail.com> <Pine.GSO.4.64.0810311154030.16737@zeno.ucsd.edu> <539c60b90810311230i11460966la7ff35b0093642ec@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 31 October 2008 20:30:46 Steve Franks wrote:
> Let's backup.  What's the 'right' way to get a bloody linux program
> that expects all it's headers in /usr/include to compile on freebsd
> where all the headers are in /usr/local/include?  That's all I'm
> really asking.  Specifically, it's looking for libusb & libftdi.  If
> I just type gmake, it can't find it, but if I manually edit the
> Makefiles to add -I/usr/local/include, it can.  Obviously, manually
> editing the makefiles is *not* the right way to fix it (plus it's
> driving me crazy).

./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

They should consider using pkg-config in their configure script to
locate libusb and libftdi.



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