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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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.
[-- Attachment #2 --]
*** /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}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?345C27BF.446B9B3D>
