IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:46:01 AM (14 years ago)
Author:
eugene
Message:

updates for pedantic gcc, mods to relphot average mags to handle GPC1 stacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/configure.tcsh

    r31669 r34088  
    1010set optimize = 0
    1111set pedantic = 1
     12set no_as_needed = 0
     13set debug_build = 0
    1214set memcheck = 0
    1315set use_tcmalloc = 0
     
    3133while ("$1" != "")
    3234 switch ("$1")
    33   # options passed by jhbuild or others which we ignore
     35  # options passed by build systems which we ignore
    3436  case --enable-maintainer-mode
    3537  case --no-create
    3638  case --no-recursion
     39  case --disable-shared
     40  case --enable-shared
     41  case --disable-static
     42  case --enable-static
     43   breaksw;
     44  # key/value options passed by build systems which we ignore
    3745  case --sbindir*
    3846  case --libexecdir*
     
    4957   endif
    5058   breaksw;
    51   case --disable-shared
    52   case --enable-shared
    53   case --disable-static
    54   case --enable-static
    55     echo ""
    56     echo "WARNING: Ohana can't turn shared/static builds on/off."
    57     echo ""
    58     breaksw;
     59  case --enable-no-as-needed
     60   set no_as_needed = 1
     61   breaksw;
     62  case --enable-debug-build
     63   set debug_build = 1
     64   set pedantic = 0
     65   echo "disabling pedantic build"
     66   endif   
     67   breaksw;
     68  # options used by Ohana, but not gpcsw
    5969  case --vararch
    6070   set vararch = 1
     
    8090  case --pedantic
    8191   set pedantic = 1
     92   if ($debug_build) then
     93    echo "--pedantic and --enable-debug-build are mutually exclusive"
     94    exit 2;
     95   endif   
    8296   breaksw;
    8397  case --no-pedantic
     
    203217  set CPPFLAGS = ""
    204218endif 
     219
    205220if ($pedantic) set CPPFLAGS = "$CPPFLAGS -Wall -Werror"
     221if ($debug_build) set CPPFLAGS = "$CPPFLAGS -Wall"
    206222if ($memcheck) set CPPFLAGS = "$CPPFLAGS -DOHANA_MEMORY"
    207223
     
    211227if ($profile) set LDFLAGS = "$LDFLAGS -Wl,--start-group -Wl,-Bstatic -Wl,-Bdynamic"
    212228
     229if ($no_as_needed) set LDFLAGS = "$LDFLAGS -Wl,--no-as-needed"
     230
    213231set syslibpath = "/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
     232set xtrlibpath = `checkpaths.pl lib`
     233set syslibpath = "$syslibpath $xtrlibpath"
     234
    214235set needlibs   = ""
    215236set needlibs   = "$needlibs png"
     
    226247
    227248set sysincpath = "/usr/include /usr/local/include /usr/X11R6/include"
     249set xtrincpath = `checkpaths.pl include`
     250set sysincpath = "$sysincpath $xtrincpath"
    228251
    229252set needincs = ""
     
    334357echo "setting architecture to: $arch"
    335358
     359# add
     360
    336361# set up the basic directory names:
    337362set root = `pwd`
     
    707732EOF
    708733 exit 2;
     734
Note: See TracChangeset for help on using the changeset viewer.