diff options
author | Andy Polyakov <appro@openssl.org> | 2006-10-21 13:38:16 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2006-10-21 13:38:16 +0000 |
commit | cbfb39d1be669aefe4c2dc3b3256f71fd0bd1266 (patch) | |
tree | c833b6d237983d212f67d456f3df95455b80d0d2 /Makefile.org | |
parent | a4d64c7f49d76d659b6ad482c4f788fc7274f651 (diff) | |
download | openssl-new-cbfb39d1be669aefe4c2dc3b3256f71fd0bd1266.tar.gz |
Rudimentary support for cross-compiling.
Diffstat (limited to 'Makefile.org')
-rw-r--r-- | Makefile.org | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile.org b/Makefile.org index b55b6ba8ac..805ab6f1c1 100644 --- a/Makefile.org +++ b/Makefile.org @@ -66,6 +66,7 @@ EXE_EXT= ARFLAGS= AR=ar $(ARFLAGS) r RANLIB= ranlib +NM= nm PERL= perl TAR= tar TARFLAGS= --no-recursion @@ -174,7 +175,8 @@ CLEARENV= TOP= && unset TOP $${LIB+LIB} $${LIBS+LIBS} \ BUILDENV= PLATFORM='${PLATFORM}' PROCESSOR='${PROCESSOR}' \ CC='${CC}' CFLAG='${CFLAG}' \ AS='${CC}' ASFLAG='${CFLAG} -c' \ - AR='${AR}' PERL='${PERL}' RANLIB='${RANLIB}' \ + AR='${AR}' NM='${NM}' RANLIB='${RANLIB}' \ + PERL='${PERL}' \ SDIRS='${SDIRS}' LIBRPATH='${INSTALLTOP}/lib' \ INSTALL_PREFIX='${INSTALL_PREFIX}' \ INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' \ @@ -383,12 +385,14 @@ dclean: @set -e; target=dclean; $(RECURSIVE_BUILD_CMD) rehash: rehash.time -rehash.time: certs - @(OPENSSL="`pwd`/util/opensslwrap.sh"; \ - OPENSSL_DEBUG_MEMORY=on; \ - export OPENSSL OPENSSL_DEBUG_MEMORY; \ - $(PERL) tools/c_rehash certs) - touch rehash.time +rehash.time: certs apps + @if [ -z "$(CROSS_COMPILE_PREFIX)" ]; then \ + (OPENSSL="`pwd`/util/opensslwrap.sh"; \ + OPENSSL_DEBUG_MEMORY=on; \ + export OPENSSL OPENSSL_DEBUG_MEMORY; \ + $(PERL) tools/c_rehash certs) && \ + touch rehash.time; \ + else :; fi test: tests |