|
@@ -435,14 +435,14 @@ more details, with real examples.
|
|
The second argument is optional, and if supplied will be used
|
|
The second argument is optional, and if supplied will be used
|
|
if first argument is not supported.
|
|
if first argument is not supported.
|
|
|
|
|
|
- ld-option
|
|
|
|
- ld-option is used to check if $(CC) when used to link object files
|
|
|
|
|
|
+ cc-ldoption
|
|
|
|
+ cc-ldoption is used to check if $(CC) when used to link object files
|
|
supports the given option. An optional second option may be
|
|
supports the given option. An optional second option may be
|
|
specified if first option are not supported.
|
|
specified if first option are not supported.
|
|
|
|
|
|
Example:
|
|
Example:
|
|
#arch/i386/kernel/Makefile
|
|
#arch/i386/kernel/Makefile
|
|
- vsyscall-flags += $(call ld-option, -Wl$(comma)--hash-style=sysv)
|
|
|
|
|
|
+ vsyscall-flags += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
|
|
|
|
|
|
In the above example, vsyscall-flags will be assigned the option
|
|
In the above example, vsyscall-flags will be assigned the option
|
|
-Wl$(comma)--hash-style=sysv if it is supported by $(CC).
|
|
-Wl$(comma)--hash-style=sysv if it is supported by $(CC).
|