Date: Sun, 02 Nov 1997 02:11:59 -0500 From: "Kaleb S. KEITHLEY" <k.#nojunk#keithley@opengroup.org> To: hackers@freefall.FreeBSD.org Subject: building tools with -g is too hard Message-ID: <345C27BF.446B9B3D@opengroup.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------59E2B60015FB7483794BDF32 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm trying to build a debuggable ld so I can find out why it SEGVs when linking a program with a large library (libX11) which itself has been built debuggable. That following patch lets me go, e.g., to my /usr/src/gnu/usr.bin/ld (or where ever) and type `make CDEBUGFLAGS=-g` and get a debuggable version of whatever I'm building, without resorting to editing the Makefile every time I want to do this (which is pretty rare, but that's beside the point.) This patch was made on a 2.2.2R system. --------------59E2B60015FB7483794BDF32 Content-Type: text/plain; charset=us-ascii; name="sys.mk.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sys.mk.patch" *** /usr/share/mk/sys.mk.orig Sun Nov 2 01:41:44 1997 --- /usr/share/mk/sys.mk Sun Nov 2 01:42:29 1997 *************** *** 38,44 **** .else CC ?= cc .endif ! CFLAGS ?= -O CXX ?= c++ CXXFLAGS ?= ${CXXINCLUDES} ${CFLAGS} --- 38,45 ---- .else CC ?= cc .endif ! CDEBUGFLAGS ?= -O ! CFLAGS ?= ${CDEBUGFLAGS} CXX ?= c++ CXXFLAGS ?= ${CXXINCLUDES} ${CFLAGS} --------------59E2B60015FB7483794BDF32--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?345C27BF.446B9B3D>