Changeset 4081 for palm/trunk


Ignore:
Timestamp:
Jul 10, 2019 2:34:11 PM (2 years ago)
Author:
raasch
Message:

bugfix for executing module commands and for interpreting linker options on local machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmbuild

    r3756 r4081  
    2727# -----------------
    2828# $Id$
     29# bugfix for executing module commands and for interpreting linker options
     30# on local machines
     31#
     32# 3756 2019-02-20 11:24:32Z suehring
    2933# Disable compilation of postprocessing tool for surface output, until 
    3034# crashes with unexpected segmentation faults with intel compiler are solved.
     
    754758       if [[ "$login_init_cmd" != "" ]]
    755759       then
    756           $login_init_cmd
     760          eval $login_init_cmd
    757761       fi
    758762
    759763       if [[ "$module_commands" != "" ]]
    760764       then
    761           $module_commands
    762        fi
    763 
     765          eval $module_commands
     766       fi
     767
     768          # next is required to evaluate environment variables or commands used in the linker option
     769       eval linker_options=\"$linker_options\"
    764770
    765771          # CREATE MAKE-DEPOSITORY, IF IT DOES NOT EXIST
     
    840846       fi
    841847
     848       linker_options=\"eval $linker_options\"
     849
    842850       make  $make_options  PROG=$program_name  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$compiler_options"  LDFLAGS="$linker_options"  2>&1 | tee ${configuration_identifier}_last_make_protocol
    843851
     
    933941             echo "  *** execute \"make\" on local host"
    934942          fi
    935           [[ "$login_init_cmd" != "" ]]   &&  $login_init_cmd
    936           [[ "$module_commands" != "" ]]  &&  $module_commands
     943          [[ "$login_init_cmd" != "" ]]   &&  eval $login_init_cmd
     944          [[ "$module_commands" != "" ]]  &&  eval $module_commands
     945
     946             # next is required to evaluate environment variables or commands used in the linker option
     947          eval linker_options=\"$linker_options\"
    937948
    938949          make  $make_options  PROG=$program_name  F90=$compiler_name  COPT="$cpp_options"  F90FLAGS="$compiler_options"  LDFLAGS="$linker_options"
Note: See TracChangeset for help on using the changeset viewer.