Thanks, Victor! This was really helpful! This should be put in the FAQ. I'm sure I'm not the only one who was wondering how to use this.

        -John

Victor Duchovni wrote:
On Sun, Feb 08, 2009 at 09:06:23PM -0500, John Center wrote:

Hi,

I'm trying to understand the Configure command line options. How does one use the last option listed:

        os/compiler[:flags]

I see something similar in the Configure script itself:

#config-string $cc : $cflags : $unistd : $thread_cflag : $sys_id : $lflags : $bn_ops : $cpuid_obj : $bn_obj : $des_obj : $aes_obj : $bf_obj : $md5_obj : $sha1_obj : $cast_obj : $rc4_obj : $rmd160_obj : $rc5_obj : $dso_scheme : $shared_target : $shared_cflag : $shared_ldflag : $shared_extension : $ranlib : $arflags

Is this what it's referring to? Should I be able to pass the various flags listed? If I wanted to change just the $shared_ldflag, how would I do this?

Here's an example:

    export OPTIONS="no-zlib no-idea threads shared"
    export OSTYPE=linux-x86_64
    export LDFLAGS="..."

    SYSTEM_OPTIONS=$(
        ./Configure TABLE |
            perl -ne '
                BEGIN {$/="\n\n"}
                chomp;
                print "$_\n" if (s/\A\*\*\* ($ENV{OSTYPE})/\$platform = $1/);
            ' |
            perl -pe 's{^(\$lflags\s*=\s*.*)}{$1 $ENV{LDFLAGS}};' |
            perl -pe 's{^[^=]*=[^\S\n]*}{}; s/\$/\\\$/g; s/\n/:/ unless eof();'
    )

    ./Configure $OPTIONS "$SYSTEM_OPTIONS"

Season to taste. The idea is to parse the output of "./Configure TABLE"
and construct the appropriate modified option spec.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to