lkml.org 
[lkml]   [1997]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectallowing -save-temps when building the kernel
Date
From

I find -save-temps useful to help debug problems with the preprocessor.

I don't see a good way to add this to a linux build...

Also, it conflicts with -pipe (pipe takes precedence).

This is wrt 2.0.33:

: leisner@dw;rcsdiff -u arch/i386/boot/Makefile
rcsdiff: arch/i386/boot/RCS/Makefile,v: No such file or directory
: leisner@dw;rcsdiff -u arch/i386/Makefile
===================================================================
RCS file: arch/i386/Makefile,v
retrieving revision 1.1
diff -u -r1.1 arch/i386/Makefile
--- arch/i386/Makefile 1997/12/20 17:06:43 1.1
+++ arch/i386/Makefile 1997/12/20 17:07:02
@@ -59,7 +59,8 @@
LINKFLAGS =-qmagic -Ttext 0xfffe0
endif

-CFLAGS := $(CFLAGS) -pipe
+PIPE := -pipe
+CFLAGS := $(CFLAGS) $(PIPE)

ifdef CONFIG_M386
CFLAGS := $(CFLAGS) -m386 -DCPU=386


Doing
make PIPE=-save-temps

did exactly what I wanted.



marty leisner@sdsp.mc.xerox.com
Don't confuse education with schooling.
Milton Friedman to Yogi Berra

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.035 / U:1.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site