X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=Xserver%2Fconfig%2Futil%2Fmakeg.sh;fp=Xserver%2Fconfig%2Futil%2Fmakeg.sh;h=0b68a10802b365e92553182612585f05b6461d1e;hp=0000000000000000000000000000000000000000;hb=b6e6afccf37f4ad0515ef2a698f714fdf1bf23b3;hpb=e3340a110a3b01756b8e67531395a33b40a17d37 diff --git a/Xserver/config/util/makeg.sh b/Xserver/config/util/makeg.sh new file mode 100755 index 0000000..0b68a10 --- /dev/null +++ b/Xserver/config/util/makeg.sh @@ -0,0 +1,13 @@ +#! /bin/sh +# makeg - run "make" with options necessary to make a debuggable executable +# $XConsortium: makeg.sh /main/4 1996/06/13 11:45:08 ray $ + +# 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+"$@"}