Hi,

based on information posted by "anonymous" (hopefully with new regulations
we don't need this anymore in the future), I do build and run shared
libraries on HP-UX 10.20.
To get the best possible optimization I use a "+O4" target, that could be
included into the normal Configure file:
"hpux-parisc-cc-o4","cc:-Ae +O4 +ESlit -z -DB_ENDIAN -DBN_DIV2W 
-DMD32_XARRAY::::BN_LLONG DES_PTR DES_UNROLL DES_RISC1:::",

The script and necessary additional Makefile I have attached.
I don't have RSAREF available, so it is (no longer) in the Makefile.
Maybe you can include the script and makefile into shlib/ or decide to
implement a "contrib/" hierarchie.

Best regards,
        Lutz
PS. And don't forget, that the basic idea is from anonymous, not mine :-)
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153

hpux10-cc.sh

# Makefile.hpux-cc

major=1

slib=libssl
sh_slib=$(slib).so.$(major)

clib=libcrypto
sh_clib=$(clib).so.$(major)

all : $(clib).sl $(slib).sl


$(clib)_pic.a : $(clib).a
        echo "Copying $? to $@"
        cp -p $? $@

$(slib)_pic.a : $(slib).a
        echo "Copying $? to $@"
        cp -p $? $@

$(sh_clib) : $(clib)_pic.a
        echo "collecting all object files for $@"
        find . -name \*.o -print > allobjs
        for obj in `ar t $(clib)_pic.a`; \
        do \
                grep /$$obj allobjs; \
        done >objlist
        echo "linking $@"
        ld -b -s -z +h $@ -o $@ `cat objlist` -lc 
        rm allobjs objlist

$(clib).sl : $(sh_clib)
        rm -f $@
        ln -s $? $@

$(sh_slib) : $(slib)_pic.a $(clib).sl
        echo "collecting all object files for $@"
        find . -name \*.o -print > allobjs
        for obj in `ar t $(slib)_pic.a`; \
        do \
                grep /$$obj allobjs; \
        done >objlist
        echo "linking $@"
        ld -b -s -z +h $@ +b /usr/local/ssl/lib:/usr/lib -o $@ `cat objlist` \
                        -L. -lcrypto -lc
        rm -f allobjs objlist
        
$(slib).sl : $(sh_slib)
        rm -f $@
        ln -s $? $@

Reply via email to