diff options
author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-03-02 10:55:36 -0600 |
---|---|---|
committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-03-02 10:55:36 -0600 |
commit | db0d626379ebc2d19f05f382fdf4b04b287763e6 (patch) | |
tree | 9a75aaf769839a99cf0f46a4452e69c81dde9599 /scripts | |
parent | 41f57979ec9ab9e87e0c58fd845c01acdb7021cc (diff) | |
download | history-db0d626379ebc2d19f05f382fdf4b04b287763e6.tar.gz |
kbuild: remove dependency on compile.h
We had a dummy dependency on include/linux/compile.h, but it really caused
more trouble than benefits. It's not actually needed for the module
postprocessing, it was only put there to make sure we recognize when
gcc changed under us. However, we really can only do so much, and
the rest of kbuild won't notice a changed gcc either, so if the user replaces
gcc during a build, he just can't rely on the build doing the right thing.
The common cases are still covered, anyway. When the command to invoke
gcc changes ("CC=gcc32") we notice, and when the path to
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h
changes (which luckily contains the "2.96", we'll notice and handle that,
too.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.modpost | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index a7ab45ec78396..59b848e943e23 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -37,10 +37,7 @@ targets += $(modules) quiet_cmd_cc_o_c = CC $@ cmd_cc_o_c = $(CC) $(CFLAGS) $(CFLAGS_MODULE) -c -o $@ $< -# We have a fake dependency on compile.h to make sure that we -# notice if the compiler version changes under us. - -$(modules:.ko=.mod.o): %.mod.o: %.mod.c include/linux/compile.h FORCE +$(modules:.ko=.mod.o): %.mod.o: %.mod.c $(call if_changed,cc_o_c) targets += $(modules:.ko=.mod.o) |