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