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/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
Note: See TracChangeset for help on using the changeset viewer.