This is a discussion on Re: [openssl.org #1413] v0.9.7l: some comments - Openssl ; Hello Kurt, > [...] > > I've enclosed it inside an #ifdef checking for the symbol HAVE_POLL_H, > > which `./Configure' should check for and using select() instead. > > I thought poll() just used select() internaly in those version ...
> > I've enclosed it inside an #ifdef checking for the symbol HAVE_POLL_H,
> > which `./Configure' should check for and using select() instead.
> I thought poll() just used select() internaly in those version of the
oops, I've had a look inside the kernel and you're right. Never the less
doesn't exist, instead needs to be included, so
I've corrected the patch:
### start of diff ###
--- openssl-0.9.7l/crypto/rand/rand_unix.c.orig 2006-06-30 10:15:13.000000000 +0200
+++ openssl-0.9.7l/crypto/rand/rand_unix.c 2006-10-16 11:12:34.000000000 +0200
@@ -125,7 +125,7 @@
#if defined(OPENSSL_SYS_LINUX) /* should actually be available virtually everyw
/* added sys/ -- (ThMO) */
### end of diff ###
> > · ./config shared...:
> > a shared library build compiles all files using -fPIC, which is
> > correct for a shared library, but not for a static one, since refer=
> > ences to global variables are encoded more time-consuming, while -fPIC
> > is active, which means that for a static build, the package need to be
> > configured a second time:
> Yes, if you want both a shared and static lib, the best thing to do is
> build everything twice, once using -fPIC and once without, and I don't
> see what you want to change about it?
What I would like to see is a single Makefile doing both in one go, which
simplies things a lot, e.g. considering the openssl binary, the following
procedure is needed:
· make -f Makefile.shared
· installing the stuff
· make -f Makefile.static
· cd apps
· cp Makefile GNUmakefile
· vi GNUmakefile [replacing the ../lib*.a with -l*]
· make -C ..
· rm GNUmakefile
· installing lib*.a and openssl
The binary will be reduced in size with the above procedure from 300 kB
down to 287 kB, since during the first run it will be compiled with
THX for listening.
OpenSSL Project http://www.openssl.org
Development Mailing List firstname.lastname@example.org
Automated List Manager email@example.com