IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2012, 5:56:15 AM (14 years ago)
Author:
eugene
Message:

add -no-as-needed to LDFLAGS based on gcc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psconfig/pscheckmods

    r33995 r34022  
    11#!/usr/bin/env perl
    22
     3$DEBUG = 1;
    34$VERBOSE = 0;
    45if (@ARGV > 2 && $ARGV[0] eq "-v") {
     
    1617## XXX EAM exit 2;
    1718
    18 # &detailed_require ($ARGV[0]);
     19&detailed_require ($ARGV[0]);
    1920
    2021$x = eval "require $ARGV[0]; 1";
     
    4041    $filename =~ s|::|/|g;
    4142    $filename = "$filename.pm";
    42     # print "$filename\n";
     43    print "\ntesting : $filename\n" if $DEBUG;
    4344    if (exists $INC{$filename}) {
    4445        return 1 if $INC{$filename};
     
    4950      foreach $prefix (@INC) {
    5051          $realfilename = "$prefix/$filename";
    51           # print "real: $realfilename\n";
     52          print "real: $realfilename\n" if $DEBUG;
    5253          if (-f $realfilename) {
    5354              $INC{$filename} = $realfilename;
    54               # print "calling 'do' on $realfilename\n";
     55              print "calling 'do' on $realfilename\n" if $DEBUG;
    5556              $result = do $realfilename;
    56               # print "result: $result\n";
    57               # exit 4;
     57              print "result: $result\n" if $DEBUG;
    5858              last ITER;
    5959          }
     
    6161      die "Can't find $filename in \@INC";
    6262    }
    63     # print "here 1\n";
    6463    if ($@) {
    65         # print "here 2\n";
    66         # print "$@";
     64        print "$@" if $DEBUG;
    6765        $INC{$filename} = undef;
    68         # print "here 2a\n";
    69         exit 2;
    7066        die $@;
    7167    } elsif (!$result) {
    72         # print "here 3\n";
    73         # print "no result\n";
    74         exit 2;
     68        print "no result\n" if $DEBUG;
    7569        delete $INC{$filename};
    7670        die "$filename did not return true value";
    7771    } else {
    78         # print "here 4\n";
    79         # print "done with detailed_require\n";
    80         exit 2;
     72        print "done with detailed_require\n" if $DEBUG;
    8173        return $result;
    8274    }
Note: See TracChangeset for help on using the changeset viewer.