Ignore:
Timestamp:
Jan 3, 2006, 3:18:57 PM (20 years ago)
Author:
ansari
Message:

Portage/compilation sur AIX-XlC (regatta) - Reza 3 Jan 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/cxxcmplnk.cc

    r2802 r2867  
    4444"-O -no_implicit_include -pthread";
    4545static char * SGICC_opt =  "-O -prelink -D__SGICC__ -LANG:std";
     46static char * xlC_opt =
     47"-O -qrtti=all -qeh=v6";
    4648
    4749/* --Methode-- */
     
    116118  syscomp += "icc/"; 
    117119#endif
     120#if defined( __IBMCPP__ )
     121  compCmd = "xlC ";
     122  compOptions = xlC_opt;
     123  linkOptions = xlC_opt + string(" -brtl -qmkshrobj ");
     124  syscomp += "xlC/"; 
     125#endif
    118126
    119127#ifndef Darwin
     
    131139  char* varenv=NULL;
    132140  varenv=getenv("SOPHYABASE");
     141  string sbaserep = "./";
    133142  if (varenv) {
    134143    fgenv1 = true;
    135     string sbaserep = varenv;
     144    sbaserep = varenv;
    136145    if (sbaserep[sbaserep.length()-1] != '/')  sbaserep += '/';
    137146    cppFlags += ( " -I" + sbaserep + "include/ ");
     
    159168  if (fglibsophya) linkOptions += " -lsophya ";
    160169  if (fglibextsophya) linkOptions += " -lextsophya ";
     170#if defined( AIX )
     171  cout << " ++++==++ DBG/CxxCompilerLinker() - in AIX fglibpi= "
     172       << ((fglibpi) ? " true " : " false ")  << endl;
     173  // Reza:Dec 2005 : pb avec les programmes PI sur AIX si linke avec shared lib PI
     174  // (Portage sur regatta.calcul.u-psud.fr AIX 5.3 , libXm Xt X11 en .a uniquement)
     175  if (fglibpi) {
     176    linkOptions += " -L" + sbaserep + "lib/";
     177    linkOptions += " -lPIext -lPIGcont -lPI -lXm -lXt -lX11 -lpthread ";
     178  }
     179#else
    161180  if (fglibpi) linkOptions += " -lPI ";
     181#endif
    162182  linkOptions += " -lm ";
    163183
Note: See TracChangeset for help on using the changeset viewer.