2.5.7 Rules.make change break nfsd.

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Fri Apr 05 2002 - 02:07:15 EST


2.5.7 introduces:

-------------------------------------------------------------
#
# Rule to link composite objects
#

# for make >= 3.78 the following is cleaner:
# multi-used := $(foreach m,$(obj-y) $(obj-m), $(if $($(basename $(m))-Objs), $(m)))
multi-used := $(sort $(foreach m,$(obj-y) $(obj-m),$(patsubst %,$(m),$($(basename $(m))-objs))))
                                                                      ^^^^^^^^^^^^^^^^^^^^^^^
ld-multi-used := $(filter-out $(list-multi),$(multi-used))
ld-multi-objs := $(foreach m, $(ld-multi-used), $($(basename $(m))-objs))
------------------------------------------------------------

If the basename of some object is "export" (i.e. export.o), then the
underlined section referes to "export-objs" which is a macro that
already has a well defined meaning.

Maybe it should be "-Objs" or "-components" or ...

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:16 EST