From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 31 20:32:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A444C1065678 for ; Fri, 31 Oct 2008 20:32:25 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay005.isp.belgacom.be (mailrelay005.isp.belgacom.be [195.238.6.171]) by mx1.freebsd.org (Postfix) with ESMTP id 4000E8FC23 for ; Fri, 31 Oct 2008 20:32:24 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAM//CklR9cmm/2dsb2JhbACBdsxbg1E Received: from 166.201-245-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.245.201.166]) by relay.skynet.be with ESMTP; 31 Oct 2008 21:03:54 +0100 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id m9VK1NiE008708; Fri, 31 Oct 2008 21:01:23 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-hackers@freebsd.org, stevefranks@ieee.org Date: Fri, 31 Oct 2008 21:01:21 +0100 User-Agent: KMail/1.9.10 References: <539c60b90810311123w2aa94b8akcd0a5d0fe791885a@mail.gmail.com> <539c60b90810311230i11460966la7ff35b0093642ec@mail.gmail.com> In-Reply-To: <539c60b90810311230i11460966la7ff35b0093642ec@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810312101.22605.tijl@ulyssis.org> Cc: Subject: Re: includes, configure, /usr/lib vs. /usr/local/lib, and linux coders X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2008 20:32:25 -0000 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.