Revision 1001 trunk/scripts/admb/adlink

adlink (revision 1001)
12 12
if [[ "$1" == "--help" ]]; then help; exit; fi
13 13

  
14 14
unset shared
15
sym=-s
15
sym=
16 16
opt=
17 17
while getopts "dgrso" A; do
18 18
  case $A in
......
40 40
  fi 
41 41
done
42 42

  
43
if [ -z $CXX ]; then
44
  if [ -f $ADMB_HOME/bin/admb-cfg.sh ]; then
45
    source $ADMB_HOME/bin/admb-cfg.sh
43
if [ -z "$CXX" ]; then
44
  if [ -f "$ADMB_HOME/bin/admb-cfg.sh" ]; then
45
    source "$ADMB_HOME/bin/admb-cfg.sh"
46 46
  else
47 47
    CXX=c++
48 48
  fi
......
62 62
  LDFLAGS="--static $LDFLAGS"
63 63
fi
64 64

  
65
CMD="$CXX $LDFLAGS $objects \"$ADMB_HOME\"/lib/libadmb$opt.a \"$ADMB_HOME\"/contrib/lib/libcontrib$opt.a"
65
CMD="$CXX $LDFLAGS $objects \"$ADMB_HOME\"/contrib/lib/libcontrib$opt.a \"$ADMB_HOME\"/lib/libadmb$opt.a"
66 66
echo $CMD
67 67
eval $CMD
68 68

  

Also available in: Unified diff