Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2007 17:35:12 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Finding libraries to link with and autoconf resources?
Message-ID:  <45CFC450.40609@u.washington.edu>
In-Reply-To: <17871.43303.763189.645799@gromit.timing.com>
References:  <45CE8BEC.7050404@u.washington.edu>	<17870.42419.779434.735451@bhuda.mired.org>	<2D763A31-2BAF-4AD5-A256-273CD37EB7A5@u.washington.edu>	<17871.29428.183244.232189@gromit.timing.com>	<17871.34327.776800.460172@bhuda.mired.org> <17871.43303.763189.645799@gromit.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
John E Hein wrote:
> Mike Meyer wrote at 16:09 -0500 on Feb 11, 2007:
>  > In <17871.29428.183244.232189@gromit.timing.com>, John E Hein <jhein@timing.com> typed:
>  > > In your freebsd port, there is a common idiom that looks like this
>  > > in the Makefile:
>  > > 
>  > > LDFLAGS+=-L/your/path/to/png/lib
>  > > CPPFLAGS+=-I/your/path/to/png/include
>  > > CONFIGURE_ENV=CPPFLAGS="${CPPFLAGS} LDFLAGS="${LDFLAGS}
>  > 
>  > The port idiom is correctly more like:
>  > 
>  > LDFLAGS+=-L$(LOCALBASE)/subdir/to/png/lib
>  > CPPFLAGS+=-I$(LOCALBASE)/subdir/to/png/include
>  > 
>  > to get LOCALBASE correct. 
> 
> Not if you don't have it in LOCALBASE ;) (that's one of the problems I
> have with ports - they all assume everything is in LOCALBASE, but I
> often want to try stuff that I put elsewhere).
> 
> But, yes, most ports do something like that.
> 
> 
>  > > ports@ is a better place to ask such questions, by the way.
>  > 
>  > Unless it's really an autoconf question, in which case the right place
>  > would be an autoconf list.
> 
> True enough... or the author of the original software if you really
> want them to fix their configure / configure.in
> 
> But ports@ or the PH is a good place to ask about working around such
> upstream problems and getting it built on FreeBSD.

	Ok, will keep that in mind and I'll "forward" my question to
that list. I just want to get the build going so then I can figure out 
what stuff needs to be modified for FreeBSD :).
	I appreciate the tips.
Thanks!
-Garrett



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