Keep my own specially optimized HP-UX shared library building up to date.
authorLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Apr 2002 12:35:45 +0000 (12:35 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Apr 2002 12:35:45 +0000 (12:35 +0000)
shlib/Makefile.hpux10-cc
shlib/hpux10-cc.sh

index 4dc62ebd9ebc670ebb9d08ac6c2f63498a3c4617..89c28dcf4625033e44b522d0e9bd05bbf699c88b 100644 (file)
@@ -1,12 +1,12 @@
 # Makefile.hpux-cc
 
 # Makefile.hpux-cc
 
-major=1
+major=0.9.8
 
 slib=libssl
 
 slib=libssl
-sh_slib=$(slib).so.$(major)
+sh_slib=$(slib).sl.$(major)
 
 clib=libcrypto
 
 clib=libcrypto
-sh_clib=$(clib).so.$(major)
+sh_clib=$(clib).sl.$(major)
 
 all : $(clib).sl $(slib).sl
 
 
 all : $(clib).sl $(slib).sl
 
@@ -20,31 +20,14 @@ $(slib)_pic.a : $(slib).a
        cp -p $? $@
 
 $(sh_clib) : $(clib)_pic.a
        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
+       ld -b -s -z +h $@ -o $@ -Fl $(clib)_pic.a -ldld -lc 
 
 $(clib).sl : $(sh_clib)
        rm -f $@
        ln -s $? $@
 
 $(sh_slib) : $(slib)_pic.a $(clib).sl
 
 $(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
+       ld -b -s -z +h $@ -o $@ -Fl $(slib)_pic.a -ldld -lc
         
 $(slib).sl : $(sh_slib)
        rm -f $@
         
 $(slib).sl : $(sh_slib)
        rm -f $@
index b68fcf7d2bdae5a6fae0938739a8edb9fcad1682..ceeb8c5236c0f05757438e3141bcde6255a684c4 100644 (file)
@@ -42,7 +42,7 @@ SITEFLAGS="+DAportable +w1"
 MYFLAGS="-D_REENTRANT +Oall $SITEFLAGS"
 
 # Configure for pic and build the static pic libraries
 MYFLAGS="-D_REENTRANT +Oall $SITEFLAGS"
 
 # Configure for pic and build the static pic libraries
-perl5 Configure hpux-parisc-cc-o4 +z ${MYFLAGS}
+perl5 Configure no-shared hpux-parisc-cc-o4 +Z ${MYFLAGS}
 make clean
 make DIRS="crypto ssl"
 # Rename the static pic libs and build dynamic libraries from them
 make clean
 make DIRS="crypto ssl"
 # Rename the static pic libs and build dynamic libraries from them
@@ -60,21 +60,21 @@ mkdir /usr/local
 mkdir /usr/local/ssl
 mkdir /usr/local/ssl/lib
 chmod 444 lib*_pic.a
 mkdir /usr/local/ssl
 mkdir /usr/local/ssl/lib
 chmod 444 lib*_pic.a
-chmod 555 lib*.so.1
-cp -p lib*_pic.a lib*.so.1 /usr/local/ssl/lib
-(cd /usr/local/ssl/lib ; ln -sf libcrypto.so.1 libcrypto.sl ; ln -sf libssl.so.1 libssl.sl)
+chmod 555 lib*.sl.0.9.8
+cp -p lib*_pic.a lib*.sl.0.9.8 /usr/local/ssl/lib
+(cd /usr/local/ssl/lib ; ln -sf libcrypto.sl.0.9.8 libcrypto.sl ; ln -sf libssl.sl.0.9.8 libssl.sl)
 
 # Reconfigure without pic to compile the executables. Unfortunately, while
 # performing this task we have to recompile the library components, even
 # though we use the already installed shared libs anyway.
 #
 
 # Reconfigure without pic to compile the executables. Unfortunately, while
 # performing this task we have to recompile the library components, even
 # though we use the already installed shared libs anyway.
 #
-perl5 Configure hpux-parisc-cc-o4 ${MYFLAGS}
+perl5 Configure no-shared hpux-parisc-cc-o4 ${MYFLAGS}
 
 make clean
 
 # Hack the Makefiles to pick up the dynamic libraries during linking
 #
 
 make clean
 
 # Hack the Makefiles to pick up the dynamic libraries during linking
 #
-sed 's/^PEX_LIBS=.*$/PEX_LIBS=-L\/usr\/local\/ssl\/lib -Wl,+b,\/usr\/local\/ssl\/lib:\/usr\/lib/' Makefile.ssl >xxx; mv xxx Makefile.ssl
+sed 's/^PEX_LIBS=.*$/PEX_LIBS=-L\/usr\/local\/ssl\/lib/' Makefile.ssl >xxx; mv xxx Makefile.ssl
 sed 's/-L\.\.//' apps/Makefile.ssl >xxx; mv xxx apps/Makefile.ssl
 sed 's/-L\.\.//' test/Makefile.ssl >xxx; mv xxx test/Makefile.ssl
 # Build the static libs and the executables in one make.
 sed 's/-L\.\.//' apps/Makefile.ssl >xxx; mv xxx apps/Makefile.ssl
 sed 's/-L\.\.//' test/Makefile.ssl >xxx; mv xxx test/Makefile.ssl
 # Build the static libs and the executables in one make.
@@ -85,7 +85,7 @@ make install
 # Finally build the static libs with +O3. This time we only need the libraries,
 # once created, they are simply copied into place.
 #
 # Finally build the static libs with +O3. This time we only need the libraries,
 # once created, they are simply copied into place.
 #
-perl5 Configure hpux-parisc-cc ${MYFLAGS}
+perl5 Configure no-shared hpux-parisc-cc ${MYFLAGS}
 make clean
 make DIRS="crypto ssl"
 chmod 644 libcrypto.a libssl.a
 make clean
 make DIRS="crypto ssl"
 chmod 644 libcrypto.a libssl.a