From d56d6311194588f3dcf93a04c45a763e08129675 Mon Sep 17 00:00:00 2001 From: qjb Date: Thu, 3 Aug 1989 14:48:48 +0000 Subject: [PATCH] Added support for DEBUG_LIBS so that when this is defined debugging symbols are not removed from libraries. Author: jtkohl Auditor: qjb --- util/imake.includes/Imake.rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/imake.includes/Imake.rules b/util/imake.includes/Imake.rules index 1a2b9c85..da30aa77 100644 --- a/util/imake.includes/Imake.rules +++ b/util/imake.includes/Imake.rules @@ -94,11 +94,18 @@ install:: @@\ * Rule for building objects in libraries. */ +#ifdef DEBUG_LIBS +/* When debugging, leave symbols alone (don't do LD) */ +#define library_obj_rule() @@\ +.c.o: @@\ + $(CC) -c $(CFLAGS) $*.c +#else #define library_obj_rule() @@\ .c.o: @@\ $(CC) -c $(CFLAGS) $*.c @@\ -$(LD) -x -r -o a.out $*.o @@\ $(MV) a.out $*.o +#endif #define library_ro_object(cfile) @@\ concat(cfile,.o): concat(cfile,.c) @@\ -- 2.45.1