* 2.5.22 make dep problem with symbol versions
@ 2002-06-18 20:43 James Bottomley
0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2002-06-18 20:43 UTC (permalink / raw)
To: Kai Germaschewski; +Cc: linux-kernel, James.Bottomley
make dep generates broken versioning (actually empty .ver files) if the local
Makefile rule has more than one export-obj. The new rules to generate the
.ver files actually only apply to the first export-obj in the list, and not
the subsequent ones. The fix is to add the prefix correctly (see below).
This finally gives me a working build for 2.5.22.
James
===== Rules.make 1.59 vs edited =====
--- 1.59/Rules.make Mon Jun 10 21:59:33 2002
+++ edited/Rules.make Tue Jun 18 15:14:39 2002
@@ -131,9 +131,9 @@
genksyms_smp_prefix :=
endif
-$(MODVERDIR)/$(real-objs-y:.o=.ver): modkern_cflags := $(CFLAGS_KERNEL)
-$(MODVERDIR)/$(real-objs-m:.o=.ver): modkern_cflags := $(CFLAGS_MODULE)
-$(MODVERDIR)/$(export-objs:.o=.ver): export_flags := -D__GENKSYMS__
+$(addprefix $(MODVERDIR)/,$(real-objs-y:.o=.ver)): modkern_cflags :=
$(CFLAGS_KERNEL)
+$(addprefix $(MODVERDIR)/,$(real-objs-m:.o=.ver)): modkern_cflags :=
$(CFLAGS_MODULE)
+$(addprefix $(MODVERDIR)/,$(export-objs:.o=.ver)): export_flags :=
-D__GENKSYMS__
c_flags = -Wp,-MD,$(depfile) $(CFLAGS) $(NOSTDINC_FLAGS) \
$(modkern_cflags) $(EXTRA_CFLAGS) $(CFLAGS_$(*F).o) \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-18 20:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-18 20:43 2.5.22 make dep problem with symbol versions James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®