On Wed, 18 Jul 2001, Marko Asplund wrote:
> On Wed, 18 Jul 2001, Richard Levitte - VMS Whacker wrote:
>
> > ...
> > Because support for building shared libraries on Darwin hasn't been
> > added to Makefile.org. The reason may very well be (it is in my case)
> > that noone that has bothered with the shared library support knows how
> > one builds shared libraries on Darwin. Please instruct us.
> ...
here's another try. now shared libraries should get properly installed.
./Configure rhapsody-ppc-cc shared
best regards,
--
aspa
*** openssl-0.9.6b-dist/Configure Mon Jul 9 17:08:37 2001
--- openssl-0.9.6b/Configure Wed Jul 18 18:37:08 2001
***************
*** 424,431 ****
"OpenBSD", "gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::BN_LLONG
RC2_CHAR RC4_INDEX
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
"OpenBSD-mips","gcc:-O2 -DL_ENDIAN::(unknown):BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR
DES_UNROLL DES_RISC2 DES_PTR
BF_PTR:::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
! ##### MacOS X (a.k.a. Rhapsody) setup
! "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK
DES_UNROLL BF_PTR:::",
##### Sony NEWS-OS 4.x
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR
RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
--- 424,431 ----
"OpenBSD", "gcc:-DTERMIOS -O3 -fomit-frame-pointer::(unknown)::BN_LLONG
RC2_CHAR RC4_INDEX
DES_UNROLL::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
"OpenBSD-mips","gcc:-O2 -DL_ENDIAN::(unknown):BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR
DES_UNROLL DES_RISC2 DES_PTR
BF_PTR:::::::::::dlfcn:bsd-gcc-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
! ##### MacOS X (a.k.a. Rhapsody, a.k.a. Darwin) setup
! "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN -DUSE_TOD -DPEDANTIC::(unknown)::BN_LLONG
RC4_CHAR RC4_CHUNK DES_UNROLL
BF_PTR:::::::::::rhapsody-shared::.\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib::.dylib",
##### Sony NEWS-OS 4.x
"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR
RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
***************
*** 655,663 ****
print "IsWindows=$IsWindows\n";
! (my $cc,my $cflags,my $unistd,my $thread_cflag,my $lflags,my $bn_ops,my $bn_obj,my
$des_obj,my $bf_obj,
! $md5_obj,$sha1_obj,my $cast_obj,my $rc4_obj,$rmd160_obj,my $rc5_obj,my
$dso_scheme,my $shared_target,my $shared_cflag,my $shared_extension,my $ranlib)=
! split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
$cflags="$flags$cflags" if ($flags ne "");
# The DSO code currently always implements all functions so that no
--- 655,666 ----
print "IsWindows=$IsWindows\n";
! # this here is the key to the cryptic machine descriptions above.
! (my $cc,my $cflags,my $unistd,my $thread_cflag,my $lflags,my $bn_ops,
! my $bn_obj,my $des_obj,my $bf_obj,$md5_obj,$sha1_obj,my $cast_obj,
! my $rc4_obj,$rmd160_obj,my $rc5_obj,my $dso_scheme,my $shared_target,
! my $shared_cflag,my $shared_extension,my $ranlib,my $shared_libs_link_exts)=
! split(/\s*:\s*/,$table{$target} . ":" x 30 , -1);
$cflags="$flags$cflags" if ($flags ne "");
# The DSO code currently always implements all functions so that no
***************
*** 816,821 ****
--- 819,826 ----
open(OUT,">$Makefile") || die "unable to create $Makefile:$!\n";
print OUT "### Generated automatically from Makefile.org by Configure.\n\n";
my $sdirs=0;
+ if(!length($shared_libs_link_exts)) { # set default value
+ $shared_libs_link_exts = '.so.$(SHLIB_MAJOR) .so' };
while (<IN>)
{
chop;
***************
*** 861,867 ****
s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if
(!$no_shared);
! s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.so.\$(SHLIB_MAJOR) .so/ if
($shared_extension ne "" && $shared_extension !~ /^\.s[ol]$/);
print OUT $_."\n";
}
close(IN);
--- 866,872 ----
s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if
(!$no_shared);
! s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=$shared_libs_link_exts/;
print OUT $_."\n";
}
close(IN);
*** openssl-0.9.6b-dist/Makefile.org Mon Jul 9 17:08:41 2001
--- openssl-0.9.6b/Makefile.org Wed Jul 18 18:58:56 2001
***************
*** 62,67 ****
--- 62,68 ----
EXE_EXT=
AR=ar r
RANLIB= ranlib
+ LIBTOOL= libtool
PERL= perl
TAR= tar
TARFLAGS= --no-recursion
***************
*** 281,286 ****
--- 282,295 ----
libs="$$libs -l$$i"; \
done
+ do_rhapsody-shared:
+ libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \
+ ( set -x; ${LIBTOOL} -dynamic lib$$i.a \
+ -o lib$$i.${SHLIB_MAJOR}.${SHLIB_MINOR}.dylib \
+ -S ${EX_LIBS} $$libs -lcc_dynamic -lc ) || exit 1; \
+ libs="$$libs -l$$i"; \
+ done
+
Makefile.ssl: Makefile.org
@echo "Makefile.ssl is older than Makefile.org."
@echo "Reconfigure the source tree (via './config' or 'perl Configure'),
please."
***************
*** 299,305 ****
rm -f $(LIBS); \
fi; \
done;
! rm -f *.a *.o speed.* *.map *.so .pure core
rm -f $(TARFILE)
@for i in $(ONEDIRS) ;\
do \
--- 308,314 ----
rm -f $(LIBS); \
fi; \
done;
! rm -f *.a *.o speed.* *.map *.so *.dylib .pure core
rm -f $(TARFILE)
@for i in $(ONEDIRS) ;\
do \