#! /bin/csh # # set up environment variable that points to C++ runtime libraries # and fortran libraries, depending on the system... # # CPP_TRAILER = libraries required for linking C++ code with fortran linker # FTN_TRAILER = libraries required for linking fotran code with C++ linker # FTN_MAIN = object file containing the fortran main() function # # ***NOTE NOTE NOTE*** this file will need maintenance! # # this could be invoked e.g. from the script codesys/source/doc/sample.login # # the settings below are based on the PPPL unix cluster configuration in # which gcc 3.X is NOT the default compiler for the system. Therefore # they include the -L/usr/local/gcc32/lib link option in CPP_TRAILER. # In addition the PATH and LD_LIBRARY_PATH have been set so gcc 3.X is # invoked in preference to the default system compiler, i.e. # setenv PATH "/usr/local/gcc32/bin:$PATH" # setenv LD_LIBRARY_PATH "/usr/local/gcc32/lib:$LD_LIBRARY_PATH" # # DMC: adding RHEL3/lff95-6.20c clause -- RGA provided the content... # # RGA: 20Aug2003, added FTN_TRAILER, FTN_MAIN environment variables for linking # fortran libraries,programs with the C++ linker (g++) # # intel linux FTN_TRAILER,FTN_MAIN based on lahey-fujitsu f90 compiler version 6.10c # sun FTN_TRAILER,FTN_MAIN based on Sun WorkShop 6 update 2 Fortran 95 6.2 compiler # alpha linux FTN_TRAILER,FTN_MAIN are empty because of use of DECF90_CC # if ($WORKSTATION_TYPE == 'SUN') then setenv CPP_TRAILER "-L/usr/local/gcc32/lib -L/usr/local/gcc32/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3 -lstdc++ -lgcc_s -lgcc" setenv FTN_TRAILER "-L/opt/SUNWspro/lib -lfsu -lF77 -lsunmath -lfai -lfai2 -lfmaxvai -lfmaxlai -lfminvai -lfminlai -lfsumai" setenv FTN_MAIN "" else if ($WORKSTATION_TYPE == 'LINUX') then if ( $LINUX_VERSION == "RHEL3" && $F90_VERSION == "lff95-6.20c" ) then setenv FTN_TRAILER "-L$FLIBROOT/lib -lfj9i6 -lfj9f6 -lfj9e6 -lfst -lfccx86_6a" setenv FTN_MAIN "$FLIBROOT/lib/fj90rt0.o" setenv CPP_TRAILER "-L/usr/lib/gcc-lib/i386-redhat-linux/$GCC_VSN -lstdc++ -lgcc_s -lgcc /usr/lib/gcc-lib/i386-redhat-linux/$GCC_VSN/crtbegin.o /usr/lib/gcc-lib/i386-redhat-linux/$GCC_VSN/crtend.o /usr/lib/gcc-lib/i386-redhat-linux/$GCC_VSN/../../../crtn.o" else # older Intel Linux, presumably setenv CPP_TRAILER "-L/usr/local/gcc32/lib -lstdc++" setenv FTN_TRAILER "-lfj9i6 -lfj9f6 -lfj9e6 -lfst -lfccx86_6a" setenv FTN_MAIN "/usr/local/lff95/lib/fj90rt0.o" endif endif