]> andersk Git - moira.git/commitdiff
Added support for DEBUG_LIBS so that when this is defined PATCH5
authorqjb <qjb>
Thu, 3 Aug 1989 14:48:48 +0000 (14:48 +0000)
committerqjb <qjb>
Thu, 3 Aug 1989 14:48:48 +0000 (14:48 +0000)
debugging symbols are not removed from libraries.
Author: jtkohl
Auditor: qjb

util/imake.includes/Imake.rules

index 1a2b9c85e31d7ce2eb337da1906bab6b5e142438..da30aa774b3a78a3f26afbdcfe85f3bc72362308 100644 (file)
@@ -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)                                     @@\
This page took 0.474165 seconds and 5 git commands to generate.