For the benefit of anyone else struggling with cross-compilation, this is how I got openssl configure and make to create shared libraries using my cross-compiler.
include ../mak.inc OPEN_SSL_VERSION=0.9.8h all: tar xzvf openssl-$(OPEN_SSL_VERSION).tar.gz ; cd openssl-$(OPEN_SSL_VERSION) && \ ./Configure linux-ppc:$(CROSS_BIN)/$(CROSS_COMPILE)gcc no-krb5 zlib-dynamic shared threads && \ $(MAKE) SHLIB_TARGET=linux-shared all build-shared dep: all clean: rm -rf openssl-$(OPEN_SSL_VERSION) It would be nice if this could be done in a cleaner way, but it works. ----- Original Message Follows ----- From: "Dallas Clement" <[EMAIL PROTECTED]> To: openssl-users@openssl.org Subject: Re: Trouble cross-compiling for linux-ppc Date: Tue, 10 Jun 2008 10:39:38 -0500 > I was able to get the Configure script to work with my > cross-compiler as follows: > > /Configure linux-ppc:$(CROSS_BIN)/$(CROSS_COMPILE)gcc > no-krb5 zlib-dynamic shared threads > > However, no shared libraries are produced by the resulting > makefile. It looks like the $shared_target variable never > gets defined if you specify your own compiler. Does > anyone have any ideas how to get around this? > > ----- Original Message Follows ----- > From: "Dallas Clement" <[EMAIL PROTECTED]> > To: openssl-users@openssl.org > Subject: Trouble cross-compiling for linux-ppc > Date: Mon, 09 Jun 2008 21:11:46 -0500 > > > Hi All, > > > > I'm having a bit of a problem getting the openssl-0.9.8h > > Configure script to use my cross-compiler. These are > > the arguments I'm giving Configure: > > > > /Configure no-krb5 zlib-dynamic shared threads linux-ppc > > > > I can see from examining the Configure script that the > > compiler is defined as "gcc" in the configuration table > > corresponding to the "linux-ppc" target. This is what > > it looks like: > > > > "linux-ppc", "gcc:-DB_ENDIAN -DTERMIO -O3 > > -Wall::-D_REENTRANT::-ldl:BN_LLONG RC4_CHAR RC4_CHUNK > > DES_RISC1 > > > > > DES_UNROLL::linux_ppc32.o::::::::::dlfcn:linux-shared:-fPI > > C::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)" , > > I would like to somehow get the Configure script to use > > $(CROSS_BIN)/$(CROSS_COMPILE)gcc instead of just "gcc". > > > > Anybody know how to do this without having to modify the > > Configure script? I'd like to ideally expand the source > > tarball, run Configure and make. > > > > Thanks, > > Dallas > > > > > > > __________________________________________________________ > > ____________ OpenSSL Project > http://www.openssl.org User Support Mailing List > > openssl-users@openssl.org Automated List > > Manager [EMAIL PROTECTED] > __________________________________________________________ > ____________ OpenSSL Project > http://www.openssl.org User Support Mailing List > openssl-users@openssl.org Automated List > Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]