autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [autoconf] Re: default searchpaths on *BSD machines?


From: suzuki toshiya
Subject: Re: [autoconf] Re: default searchpaths on *BSD machines?
Date: Tue, 17 Apr 2012 10:46:42 +0900
User-agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080406)

Miles Bader wrote:
> I installed "libjpeg" using the FreeBSD ports infrastructure, but my
> configure script still couldn't "see" it... once I explicitly added
> "-I/usr/local/include" to CPPFLAGS, and "-L/usr/local/lib" to LDFLAGS,
> then it did find it.
> 
>> Just like anything else, it's up to the installer to put things where
>> they are supposed to go, and it's up to the local admins to tell folks
>> what the default PATHs should be for things to work as expected.
> 
> Ok, but which "PATHs" are these?  The executable search path doesn't
> cover include files or libraries...
> 
> Things I can think of:  CPPFLAGS (for includes), LDFLAGS (for
> libraries), PKG_CONFIG_PATH (for stuff that uses pkg-config), etc...

Although I don't use the latest version of FreeBSD, I don't think
package system of FreeBSD is so officious to set the environmental
variants for the compilers, so I sympathize with Miles.

However, pkg-config installed by the binary package scans following
directories automatically.
/usr/local/libdata/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R6/libdata/pkgconfig:/usr/X11R6/lib/pkgconfig

Yet I've not checked if the binary package of gcc (not the default
/usr/bin/cc, installed to /usr/local/bin) will search /usr/local
trees by default.

Regards,
mpsuzuki



reply via email to

[Prev in Thread] Current Thread [Next in Thread]