Minor patches to openssh-1.2pre17 for Solaris

Gordon Rowell gordonr at gormand.com.au
Mon Dec 13 15:40:45 EST 1999


On Fri, 10 Dec 1999, Damien Miller wrote:

> On Thu, 9 Dec 1999, Gordon Rowell wrote:
> [...]
> > Also, it would be nice to be able to set up LFLAGS somehow, to
> > provide the following:
> > 
> > LFLAGS=-R/usr/local/lib
> 
> You can do this with configure:
> 
> LDFLAGS=-R/usr/local/lib ./configure[options]
> 
> They should get propogated thru to the Makefile.

Sure, but how about this so that people don't need extra magic environment
variables? It might be applicable to more than SunOS/Solaris, but I have
guarded it for SunOS/Solaris for now.

*** configure.orig      Mon Dec 13 15:33:55 1999
--- configure   Mon Dec 13 15:39:28 1999
***************
*** 1017,1022 ****
--- 1017,1026 ----
  if test "$ssldir" != "/usr"; then
        CFLAGS="$CFLAGS -I$ssldir/include"
        LIBS="$LIBS -L$ssldir/lib"
+       case "`uname -s`" in
+           "SunOS") LDFLAGS="$LDFLAGS -R$ssldir/lib"
+                       ;;
+       esac
  fi
  LIBS="$LIBS -lssl -lcrypto"
  echo "$ac_t""$ssldir" 1>&6

Gordon
--
 Gordon Rowell                      Email: Gordon.Rowell at gormand.com.au
 Gormand Pty Ltd (ACN 067 684 548)  http://www.gormand.com.au
 P.O. Box 239 St Pauls NSW 2031     Mobile: +61 (0418) 467 366
 /* What a pile of australian legislature. */ - Alan Cox







More information about the openssh-unix-dev mailing list