File: makeg

package info (click to toggle)
xutils-dev 1%3A7.7%2B7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,576 kB
  • sloc: sh: 11,469; ansic: 6,059; cpp: 393; makefile: 376; perl: 74
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (5)
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+"$@"}