IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18878


Ignore:
Timestamp:
Aug 3, 2008, 5:26:21 PM (18 years ago)
Author:
eugene
Message:

adding options for profiler code

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure.tcsh

    r18685 r18878  
    5252   set optimize = 1
    5353   breaksw;
     54  case --enable-profile
     55   set profile = 1
     56   breaksw;
    5457  case --enable-memcheck
    5558   set memcheck = 1
     
    158161if ($optimize) set CFLAGS = "-O2"
    159162
     163# profiler code
     164if ($profile) set CFLAGS = "$CFLAGS -pg"
     165
    160166if (! $?CPPFLAGS) then
    161167  set CPPFLAGS = ""
     
    167173  set LDFLAGS =
    168174endif 
     175if ($profile) set LDFLAGS = "$LDFLAGS -Wl,--start-group -Wl,-Bstatic -Wl,-Bdynamic"
    169176
    170177set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
  • trunk/psconfig/psbuild

    r18863 r18878  
    213213    $psopts = "";
    214214    if ($optimize) { $psopts = "$psopts --enable-optimize"; }
    215     if ($profile)  { $psopts = "$psopts --enable-profiler"; }
     215    if ($profile)  { $psopts = "$psopts --enable-profile"; }
    216216
    217217    $homedir = `pwd`; chomp $homedir;
Note: See TracChangeset for help on using the changeset viewer.