Revision 1214 trunk/scripts/admb/adcomp

adcomp (revision 1214)
27 27

  
28 28
# Pop args until model=$1
29 29
unset dll
30
unset fpic
30 31
opt=-DSAFE_ALL
31 32
while getopts "dgrs" A; do
32 33
  case $A in
33
    d) dll=-DBUILDING_DLL;;
34
    d) dll=-DBUILDING_DLL; fpic=-fPIC;;
34 35
    g) sym=-g;;
35 36
    r) ;;
36 37
    s) opt=-DSAFE_ALL;;
......
54 55
#  CXXFLAGS="$CXXFLAGS -Wno-deprecated"
55 56
#fi
56 57

  
57
CXXFLAGS="$CXXFLAGS -D__GNUDOS__ $dll -Dlinux $opt -DUSE_LAPLACE -I. -I\"$ADMB_HOME\"/include -I\"$ADMB_HOME\"/contrib/include"
58
CXXFLAGS="$CXXFLAGS -D__GNUDOS__ $dll $fpic -Dlinux $opt -DUSE_LAPLACE -I. -I\"$ADMB_HOME\"/include -I\"$ADMB_HOME\"/contrib/include"
58 59

  
59 60
CMD="$CXX $CXXFLAGS $file"
60 61
echo $CMD

Also available in: Unified diff