OSSH 2.5.2p2: Why is /usr/local/ put into the include & lib paths under Solaris?

Jason Stone jason at dfmm.org
Wed Mar 28 13:39:09 EST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I'd like to know why /usr/local/(include|lib) is added to the 
> (include|library) path.

Because most opensource add-ons install into /usr/local by default and the
native compiler chain doesn't know about stuff in there and has to be
told.


> I'd _especially_ like to know why it's added before user-specified
> library directories such as OpenSSL.

It's not - looking at your patch:
 -       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 -       LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" 

They're clearly added _after_ any user defined flags.


> This really makes no sense at all, since Solaris doesn't even _have_
> /usr/local by default.

No platform should ship with /usr/local, that's the point - it's for local
customizations and non-official, "after-market" stuff that you install.  
The point is that if you install, eg, openssl on the system, it will drop
its crap in /usr/local/.  Then when you configure/make openssh, it will
find the system-wide openssl in /usr/local without your having to tell it
manually.


 -Jason

 ---------------------------
 If the Revolution comes to grief, it will be because you and those you
 lead have become alarmed at your own brutality.         --John Gardner




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: See https://private.idealab.com/public/jason/jason.gpg

iD8DBQE6wVzgswXMWWtptckRAgx3AJ9tEqz285xy0vj6l3aGQgLBxSoLZwCeNA8U
c/Rg6E4BjbDl1zreqpjYHMw=
=y7//
-----END PGP SIGNATURE-----




More information about the openssh-unix-dev mailing list