On Mon, Jan 28, 2002 at 11:31:59PM +0100, Richard Levitte - VMS Whacker wrote: > From: Dave Dykstra <[EMAIL PROTECTED]> > > dwd> I meant to say that I would like to be able to have the source use static > dwd> libraries without having to change some files every time there's a new > dwd> release, and without having to remove the system-installed copies of the > dwd> shared libraries. Below is the patch I had to apply to get that to work, > dwd> but those files are not currently generated by Configure so I don't know > dwd> how to automate it. > > There's no way to get what you want generated by Configure, at least > currently. Also, IIRC, on most Unixen, linking with libcrypto.a > rather than -lcrypto makes the linker suck in everything from that > library, regardless of if they are needed or not, while -lcrypto makes > the linker select the needed object files. I may be wrong about this.
Nope: echo "void sub1() { printf("sub1\\n"); }" >sub1.c echo "void sub2() { printf("sub2\\n"); }" >sub2.c cc -c sub1.c sub2.c ar crv arch.a sub1.o sub2.o echo "main() { sub1(); exit(0); }" >tst.c cc -o tst tst.c arch.a nm tst | grep sub shows only sub1, at least on Solaris. > I thought someone once made a patch that used some special option to > the linker so it wouldn't use system libraries at all, and then > explicitely included needed system libraries at the end of the linking > command line. It seems to me like that would be the best way to act, > really, provided those system libraries aren't renamed or moved to > different locations. > > Anyone? I noticed there were similar flags for -I header files in a recent snapshot but don't know what to do for libraries. Ah, the ld man page says -Z will tell it not to search the standard libraries. I have to go, will try it tomorrow. - Dave Dykstra ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]