2 # makeg - run "make" with options necessary to make a debuggable executable
3 # $XConsortium: makeg.sh /main/4 1996/06/13 11:45:08 ray $
5 # set GDB=1 in your environment if using gdb on Solaris 2.
8 flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"
10 # gdb on Solaris needs the stabs included in the executable
11 test "${GDB+yes}" = yes && flags="$flags -xs"
13 exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}