From: Richard Levitte Date: Fri, 10 Jan 2003 10:56:21 +0000 (+0000) Subject: When preparing a separate build tree, don't make softlinks to softlinks. X-Git-Tag: OpenSSL_0_9_7a~89 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fa47b4d8b827d9fccc9ca0a190b87da56fd520fb;p=oweals%2Fopenssl.git When preparing a separate build tree, don't make softlinks to softlinks. Add instructions in INSTALL, for easy access. PR: 437 --- diff --git a/CHANGES b/CHANGES index bc9828a92e..2b22857f63 100644 --- a/CHANGES +++ b/CHANGES @@ -181,7 +181,7 @@ # is assumed to contain the absolute OpenSSL source directory. mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`" cd objtree/"`uname -s`-`uname -r`-`uname -m`" - (cd $OPENSSL_SOURCE; find . -type f -o -type l) | while read F; do + (cd $OPENSSL_SOURCE; find . -type f) | while read F; do mkdir -p `dirname $F` ln -s $OPENSSL_SOURCE/$F $F done diff --git a/INSTALL b/INSTALL index a427f12f6c..d0c7b02f53 100644 --- a/INSTALL +++ b/INSTALL @@ -308,3 +308,23 @@ to install additional support software to obtain random seed. Please check out the manual pages for RAND_add(), RAND_bytes(), RAND_egd(), and the FAQ for more information. + + Note on support for multiple builds + ----------------------------------- + + OpenSSL is usually built in it's source tree. Unfortunately, this doesn't + support building for multiple platforms from the same source tree very well. + It is however possible to build in a separate tree through the use of lots + of symbolic links, which should be prepared like this: + + mkdir -p objtree/"`uname -s`-`uname -r`-`uname -m`" + cd objtree/"`uname -s`-`uname -r`-`uname -m`" + (cd $OPENSSL_SOURCE; find . -type f) | while read F; do + mkdir -p `dirname $F` + ln -s $OPENSSL_SOURCE/$F $F + done + + OPENSSL_SOURCE is an environment variable that contains the absolute (this + is important!) path to the OpenSSL source tree. + + Also, operations like 'make update' should still be made in the source tree.