diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-09-19 04:14:33 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 06:27:42 -0400 |
commit | f86fd306605287d7c7f4f0f8e8e2a9d49d28b396 (patch) | |
tree | 8d6115f90c496ab3fc37de2b513e1857216cd92c /Documentation/kbuild | |
parent | 4779105e03cdb6639706991081839451d709230b (diff) |
kbuild: rename ld-option to cc-ldoption
ld-option is misnamed as it test options to gcc, not to ld.
Renamed it to reflect this.
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index d76cfd8712e1..7847fce13bd6 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -435,14 +435,14 @@ more details, with real examples. | |||
435 | The second argument is optional, and if supplied will be used | 435 | The second argument is optional, and if supplied will be used |
436 | if first argument is not supported. | 436 | if first argument is not supported. |
437 | 437 | ||
438 | ld-option | 438 | cc-ldoption |
439 | ld-option is used to check if $(CC) when used to link object files | 439 | cc-ldoption is used to check if $(CC) when used to link object files |
440 | supports the given option. An optional second option may be | 440 | supports the given option. An optional second option may be |
441 | specified if first option are not supported. | 441 | specified if first option are not supported. |
442 | 442 | ||
443 | Example: | 443 | Example: |
444 | #arch/i386/kernel/Makefile | 444 | #arch/i386/kernel/Makefile |
445 | vsyscall-flags += $(call ld-option, -Wl$(comma)--hash-style=sysv) | 445 | vsyscall-flags += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) |
446 | 446 | ||
447 | In the above example, vsyscall-flags will be assigned the option | 447 | In the above example, vsyscall-flags will be assigned the option |
448 | -Wl$(comma)--hash-style=sysv if it is supported by $(CC). | 448 | -Wl$(comma)--hash-style=sysv if it is supported by $(CC). |