I'm certainly not that familiar enough with perl to generate that
script.  However, I think the real issue is with Configure.  It should
not force the -march=i486 as part of the fixed script, but rather have
it as on option or take the information from CFLAGS or CXXFLAGS as
appropriate.

Carter

Carter Browne
CBCS
cbro...@cbcs-usa.com
781-721-2890



Victor Duchovni wrote:
> On Thu, Jun 11, 2009 at 08:49:54AM -0700, Paul Rogers wrote:
>
>   
>> On Thu, 11 Jun 2009 09:00:21 -0400, "Carter Browne"
>> <cbro...@cbcs-usa.com> said:
>>     
>>> I'm not a perl monger either.  I just changed the Linux-elf entry to
>>> -march=x or -mtune=x for the more recent versions of gcc.  That worked
>>> without any problems for me.
>>>       
>> That was my first thought.  If you saw my response to Kyle fly past, my
>> first run used:
>>
>>     
>
> You don't need to edit Configure. Use the "TABLE" option, and post-process
> its output. Here's how to add custom LDFLAGS:
>
>     export OSTYPE=linux-elf
>     export LDFLAGS="-Wl,-R,/some/run/path -L/some/library/path -lsome-lib"
>     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();'
>     )
>     export CONFIG_OPTIONS="--prefix=/dest/dir -m32"
>
>     ./Configure $CONFIG_OPTIONS "$SYSTEM_OPTIONS"
>
>   
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to