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

Christopher Linn celinn at mtu.edu
Wed Mar 28 14:42:02 EST 2001


On Tue, Mar 27, 2001 at 07:59:50PM -0800, Lewandowsky, Matt wrote:
> But the main question hasn't been answered: Why is /usr/local placed before
> user-specified paths? Hypothetical example: You want to link against OpenSSL
> 0.96 for OpenSSH, but /usr/local contains 0.95, which is needed for
> something else. (Assume it comes binary only on Solaris for the sake of
> argument...)

because it is so easy to dodge that already when you run ./configure.

if you use env insertions in the command line of ./configure, like:

	CPPFLAGS="-I/my/include/dir" \
	CFLAGS="whatever" \
	LDFLAGS="-L/my/lib/Ldir -R/my/lib/Rdir" \
		./configure
			--option-1 \
			--option-2 \
	...etc...

when you load your env like this, configure will insert those -ahead-
of /usr/local, whereas if you use the --cppflags/--cflags/--ldflags
configure options, those are placed -after- /usr/local.

cheers,

chris

-- 
Christopher Linn, <celinn at mtu.edu>    | By no means shall either the CEC
Staff System Administrator            | or MTU be held in any way liable
  Center for Experimental Computation | for any opinions or conjecture I
    Michigan Technological University | hold to or imply to hold herein.



More information about the openssh-unix-dev mailing list