X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fconfigure.in;h=1c9e059299a83df2a3f4ff4688785e890b7edbb4;hb=2c22a2ef761868ef7e4b1b82d33261b49841b458;hp=600d53cb28ab7f0956442462fe6dddfaffe8abda;hpb=ac9f1497ff34198c8c64d9fc0886a6db22e49e77;p=fw%2Fsdcc diff --git a/sim/ucsim/configure.in b/sim/ucsim/configure.in index 600d53cb..1c9e0592 100644 --- a/sim/ucsim/configure.in +++ b/sim/ucsim/configure.in @@ -306,7 +306,7 @@ AC_DEFUN(DD_COPT, [ AC_CACHE_CHECK(whether $$1 accepts -$2,ucsim_cv_$1$2, cat >_test_.c < -void main(void) {} +int main(void) {return(0);} EOF $$1 -v -$2 -c _test_.c 1>&5 2>&5 if test "$?" = "0"; then @@ -361,10 +361,13 @@ AC_SUBST(M_OR_MM) # This is the first time when CFLAGS are set/modified!! DD_COPT(CXX, ggdb) -if test "$ucsim_cv_CXXggdb" = "yes"; then - gopt="-ggdb" -else - gopt="-g" +DD_COPT(CXX, gstabs) +if test "$ucsim_cv_CXXgstabs" = "yes"; then + gopt="-gstabs+ -g3" +elif test "$ucsim_cv_CXXggdb" = "yes"; then + gopt="-ggdb -g3" +else + gopt="-g" fi if test "$CXXFLAGS"x = x ;then CXXFLAGS="$gopt"