diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | scripts/Makefile.build | 2 | ||||
-rw-r--r-- | scripts/Makefile.modpost | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -299,7 +299,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(C | |||
299 | MODFLAGS = -DMODULE | 299 | MODFLAGS = -DMODULE |
300 | CFLAGS_MODULE = $(MODFLAGS) | 300 | CFLAGS_MODULE = $(MODFLAGS) |
301 | AFLAGS_MODULE = $(MODFLAGS) | 301 | AFLAGS_MODULE = $(MODFLAGS) |
302 | LDFLAGS_MODULE = -r | 302 | LDFLAGS_MODULE = |
303 | CFLAGS_KERNEL = | 303 | CFLAGS_KERNEL = |
304 | AFLAGS_KERNEL = | 304 | AFLAGS_KERNEL = |
305 | 305 | ||
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 3f7b451f3955..7fd6055bedfd 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -315,7 +315,7 @@ quiet_cmd_link_multi-y = LD $@ | |||
315 | cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) | 315 | cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) |
316 | 316 | ||
317 | quiet_cmd_link_multi-m = LD [M] $@ | 317 | quiet_cmd_link_multi-m = LD [M] $@ |
318 | cmd_link_multi-m = $(LD) $(ld_flags) $(LDFLAGS_MODULE) -o $@ $(link_multi_deps) | 318 | cmd_link_multi-m = $(cmd_link_multi-y) |
319 | 319 | ||
320 | # We would rather have a list of rules like | 320 | # We would rather have a list of rules like |
321 | # foo.o: $(foo-objs) | 321 | # foo.o: $(foo-objs) |
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index 1818c502007e..d988f5d21e3d 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost | |||
@@ -98,7 +98,7 @@ targets += $(modules:.ko=.mod.o) | |||
98 | 98 | ||
99 | # Step 6), final link of the modules | 99 | # Step 6), final link of the modules |
100 | quiet_cmd_ld_ko_o = LD [M] $@ | 100 | quiet_cmd_ld_ko_o = LD [M] $@ |
101 | cmd_ld_ko_o = $(LD) $(LDFLAGS) $(LDFLAGS_MODULE) -o $@ \ | 101 | cmd_ld_ko_o = $(LD) -r $(LDFLAGS) $(LDFLAGS_MODULE) -o $@ \ |
102 | $(filter-out FORCE,$^) | 102 | $(filter-out FORCE,$^) |
103 | 103 | ||
104 | $(modules): %.ko :%.o %.mod.o FORCE | 104 | $(modules): %.ko :%.o %.mod.o FORCE |