IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34022


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

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

Location:
branches/eam_branches/ipp-20120601/psconfig
Files:
3 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    }
  • branches/eam_branches/ipp-20120601/psconfig/psconfig.csh.in

    r31162 r34022  
    125125if ($?PERL5LIB == 0) setenv PERL5LIB
    126126if ($?MANPATH == 0) setenv MANPATH
     127if ($?LDFLAGS == 0) setenv LDFLAGS
    127128
    128129# identify system architecture
     
    318319 case linux:
    319320 case linrh:
     321   gcc --version | grep 4.6.3 | grep Ubuntu >& /dev/null
     322   if ($status == 0) then
     323    set xtraflags = "-Wl,--no-as-needed"
     324    echo $LDFLAGS | grep -- $xtraflags >& /dev/null
     325    if ($status) then
     326      setenv LDFLAGS "$LDFLAGS $xtraflags"
     327    endif
     328   endif 
    320329   breaksw;
    321330
  • branches/eam_branches/ipp-20120601/psconfig/tagsets/ipp-3.0.perl

    r34005 r34022  
    4343  32    Class::Accessor                Class-Accessor-0.30.tar.gz               0.19           NONE      NONE
    4444# XXX EAM : comment this out for now while working on Ubuntu 12.04 / perl 5.14
    45 #  33    DateTime::Format::ISO8601      DateTime-Format-ISO8601-0.06.tar.gz      0.06           NONE      NONE
     45  33    DateTime::Format::ISO8601      DateTime-Format-ISO8601-0.06.tar.gz      0.06           NONE      NONE
    4646  34    CGI                            CGI.pm-3.25.tar.gz                       3              NONE      NONE
    4747  35    Test::Cmd                      Test-Cmd-1.05.tar.gz                     1.05           NONE      NONE
Note: See TracChangeset for help on using the changeset viewer.