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

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

 



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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux