[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
- default searchpaths on *BSD machines?, Miles Bader, 2012/04/15
- Re: default searchpaths on *BSD machines?, Bob Friesenhahn, 2012/04/15
- Re: default searchpaths on *BSD machines?, Miles Bader, 2012/04/15
- Re: default searchpaths on *BSD machines?, Bob Friesenhahn, 2012/04/16
- Re: default searchpaths on *BSD machines?, Miles Bader, 2012/04/16
- Re: default searchpaths on *BSD machines?, Harlan Stenn, 2012/04/16
- Re: default searchpaths on *BSD machines?, Miles Bader, 2012/04/16
- Re: [autoconf] Re: default searchpaths on *BSD machines?,
suzuki toshiya <=
- Re: default searchpaths on *BSD machines?, James K. Lowden, 2012/04/17