diff options
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 5 | ||||
-rw-r--r-- | scripts/Makefile.build | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 3c7ea39fc098..54bbfd37f157 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -276,7 +276,7 @@ more details, with real examples. | |||
276 | 276 | ||
277 | --- 3.7 Compilation flags | 277 | --- 3.7 Compilation flags |
278 | 278 | ||
279 | EXTRA_CFLAGS, EXTRA_AFLAGS, EXTRA_LDFLAGS, EXTRA_ARFLAGS | 279 | EXTRA_CFLAGS, EXTRA_AFLAGS, EXTRA_LDFLAGS |
280 | 280 | ||
281 | All the EXTRA_ variables apply only to the kbuild makefile | 281 | All the EXTRA_ variables apply only to the kbuild makefile |
282 | where they are assigned. The EXTRA_ variables apply to all | 282 | where they are assigned. The EXTRA_ variables apply to all |
@@ -305,8 +305,7 @@ more details, with real examples. | |||
305 | EXTRA_AFLAGS := -traditional | 305 | EXTRA_AFLAGS := -traditional |
306 | 306 | ||
307 | 307 | ||
308 | $(EXTRA_LDFLAGS) and $(EXTRA_ARFLAGS) are similar strings for | 308 | $(EXTRA_LDFLAGS) is a string for per-directory options to $(LD). |
309 | per-directory options to $(LD) and $(AR). | ||
310 | 309 | ||
311 | Example: | 310 | Example: |
312 | #arch/m68k/fpsp040/Makefile | 311 | #arch/m68k/fpsp040/Makefile |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 7fd6055bedfd..e74a837690e5 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -291,7 +291,7 @@ endif # builtin-target | |||
291 | # | 291 | # |
292 | ifdef lib-target | 292 | ifdef lib-target |
293 | quiet_cmd_link_l_target = AR $@ | 293 | quiet_cmd_link_l_target = AR $@ |
294 | cmd_link_l_target = rm -f $@; $(AR) $(EXTRA_ARFLAGS) rcs $@ $(lib-y) | 294 | cmd_link_l_target = rm -f $@; $(AR) rcs $@ $(lib-y) |
295 | 295 | ||
296 | $(lib-target): $(lib-y) FORCE | 296 | $(lib-target): $(lib-y) FORCE |
297 | $(call if_changed,link_l_target) | 297 | $(call if_changed,link_l_target) |