> -----Original Message-----
> From: Richard Levitte - VMS Whacker [mailto:[EMAIL PROTECTED]]

> In message <005201c2a53d$5f4523f0$0e01a8c0@CELLO> on Mon, 16
> Dec 2002 11:55:55 -0800, "Howard Chu" <[EMAIL PROTECTED]> said:

> hyc> Please please please forget about that allextract nonsense. You
> hyc> will*never* get it portable to all desired platforms. Just take
> hyc> the lib*.a and relink it explicitly:
> hyc>  mkdir tmp; cd tmp; ar x ../libcrypto.a; ld -r -o
> ../libcrypto.o *.o
> hyc>  ld -G -o libcrypto.so libcrypto.o -l<whatever>
>
> BTW, are you sure about 'ld -r' never needing any '-z allextract' or
> whatever turns the local ld on?  The reason I ask is that you provided
> the do_aix-shared target that's present in 0.9.7.  No, I honestly
> don't recall if I did a lot of hacking into whatever you contributed
> or not, but I thought you said it looked OK.  In that case, I'd take a
> closer look at the ALLSYMSFLAG example for Solaris.  Is that one
> correct or not?  What about the other platforms, are they correct as
> well?

I'll take a look. Sorry I didn't pay closer attention till now, I've had a
lot of other loose threads to chase.

Yes, "ld -r" works on every Unix-ish system from the newest of today to going
back 30 years ago. There's no magic, you're just extracting the entire
contents of the archive file and then telling ld to link all of those objects
into a single relocatable object file. This is exactly what an ALLSYMSFLAG
*must* do under the covers, but by doing it yourself you have complete
control over the procedure.

> Note that for 0.9.7, I don't care since that method is used
> exclusively used for AIX and none else.  0.9.8-dev is another story,
> however, since I simply looked at do_aix-shared and generalised it
> further (to the point of having a general Makefile that should be
> possible to use for any library on any of the supported platforms).
>
> I know Andy is looking, but I also know his time is short, so if you
> have the time and inclination to help, please take a look at
> Makefile.shared in 0.9.8-dev.  If you have any question, please ask.

I will get back to you in a day or so, I have refresh my rsync config and
other such before I can pull the tree down.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to