Changeset 3818 in Sophya for trunk


Ignore:
Timestamp:
Jul 26, 2010, 4:23:33 PM (15 years ago)
Author:
ansari
Message:

introduction du flag -arch32 ds le script configure, Reza 26/07/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BuildMgr/configure

    r3753 r3818  
    3939unset incln
    4040unset mincname
    41 set compopt
     41set compopt
     42unset arch32
    4243unset arch64
    4344unset sasz64
     
    5657  echo 'configure [-sbase SOPHYABASE] [-scxx SOPHYACXX] [-incln] '
    5758  echo "  [-minc mymake.inc]  [-compopt 'cc/cxxOptions'] "
    58   echo '  [-arch64] [-sasz64] [-ldble128] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]'
     59  echo '  [-arch64] [-arch32] [-sasz64] [-ldble128] [-nofpic] [-nothsafe] [-boundcheck] [-sodebug]'
    5960  echo '  [-extp dir1 -extp dir2 ...] [-extip dir1 -extip dir2 ... ] [-extlp dir1 -extlp dir2 ... ]'
    6061  echo '  [-noextlib] [-noext fits] [-noext fftw] [-noext lapack] [-noext astro]'
     
    150151if( "$1" == "-arch64" ) then
    151152  set arch64
     153  unset arch32
     154endif
     155if( "$1" == "-arch32" ) then
     156  set arch32
     157  unset arch64
     158  unset sasz64
    152159endif
    153160if( "$1" == "-sasz64" ) then
     
    455462  set scmd = "/FLAGS/s/CNFPHFLF/$a64cf $compopt/g"
    456463endif
     464if ( $?arch32 ) then
     465  set a32cf = ' '
     466  if ( ( "$sname" == "Linux" ) && ("$SOPHYACXX" == "g++" ) ) set a32cf = '-m32'
     467  if ( "$sname" == "AIX" ) then
     468    if ( ("$SOPHYACXX" == "xlC" ) || ("$SOPHYACXX" == "xlc" ) )  set a32cf = '-q32'
     469  endif
     470  set scmd = "/FLAGS/s/CNFPHFLF/$a32cf $compopt/g"
     471endif
     472
    457473echo $scmd >> $sprgfile
    458474if ( $?nofpic ) echo "s/-fPIC/ /g" >>  $sprgfile
Note: See TracChangeset for help on using the changeset viewer.