From: Richard Levitte Date: Tue, 16 Jul 2002 09:18:25 +0000 (+0000) Subject: For those wanting to build for several platforms with the same source X-Git-Tag: OpenSSL_0_9_7-beta3~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4810644f65d689ae2f48842353af57450c92c30c;p=oweals%2Fopenssl.git For those wanting to build for several platforms with the same source directory, making a separate directory tree with lots of symbolic links seems to be the solution. Unfortunately, Configure doesn't take appropriate steps to support this solution (as in removing a file that's going to be rewritten). This change corrects that situation. Now I just have to find all other places where there's lack of support for this. --- diff --git a/CHANGES b/CHANGES index 3ea4aa3a6d..7b018ba3fa 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,26 @@ Changes between 0.9.6e and 0.9.7 [XX xxx 2002] + *) Add appropriate support for separate platform-dependent build + directories. The recommended way to make a platform-dependent + build directory is the following (tested on Linux), maybe with + some local tweaks: + + # Place yourself outside of the OpenSSL source tree. In + # this example, the environment variable OPENSSL_SOURCE + # 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 + mkdir -p `dirname $F` + ln -s $OPENSSL_SOURCE/$F $F + done + + To be absolutely sure not to disturb the source tree, a "make clean" + is a good thing. If it isn't successfull, don't worry about it, + it probably means the source directory is very clean. + [Richard Levitte] + *) Make sure any ENGINE control commands make local copies of string pointers passed to them whenever necessary. Otherwise it is possible the caller may have overwritten (or deallocated) the original string