]> git.sesse.net Git - rdpsrv/blob - Xserver/config/util/makeg.sh
0b68a10802b365e92553182612585f05b6461d1e
[rdpsrv] / Xserver / config / util / makeg.sh
1 #! /bin/sh
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 $
4
5 # set GDB=1 in your environment if using gdb on Solaris 2.
6
7 make="${MAKE-make}"
8 flags="CDEBUGFLAGS=-g CXXDEBUGFLAGS=-g"
9
10 # gdb on Solaris needs the stabs included in the executable
11 test "${GDB+yes}" = yes && flags="$flags -xs"
12
13 exec "$make" $flags LDSTRIPFLAGS= ${1+"$@"}