Home | History | Annotate | Line # | Download | only in dist
      1 #! /bin/sh
      2 # makeg - run "make" with options necessary to make a debuggable executable
      3 
      4 # set GDB=1 in your environment if using gdb on Solaris 2.
      5 
      6 make="${MAKE-make}"
      7 flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"
      8 
      9 # gdb on Solaris needs the stabs included in the executable
     10 test "${GDB+yes}" = yes && flags="$flags -xs"
     11 
     12 exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}
     13