diff options
| author | Laura Abbott <labbott@redhat.com> | 2018-07-09 20:46:00 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-07-17 12:18:05 -0400 |
| commit | b90a368000abe5e015e0b045ca2ff7c2173b94c0 (patch) | |
| tree | cdb76131faf50cefd643cb1cb3006129a99a4203 /scripts/Makefile.host | |
| parent | 10844aebf44851a981ddaa714351ae61c4b29103 (diff) | |
kbuild: Rename HOSTLDFLAGS to KBUILD_HOSTLDFLAGS
In preparation for enabling command line LDFLAGS, re-name HOSTLDFLAGS
to KBUILD_HOSTLDFLAGS as the internal use only flags. This should not
have any visible effects.
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.host')
| -rw-r--r-- | scripts/Makefile.host | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 455d85aa1d37..c019d781b2c9 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
| @@ -84,7 +84,7 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags) | |||
| 84 | # Create executable from a single .c file | 84 | # Create executable from a single .c file |
| 85 | # host-csingle -> Executable | 85 | # host-csingle -> Executable |
| 86 | quiet_cmd_host-csingle = HOSTCC $@ | 86 | quiet_cmd_host-csingle = HOSTCC $@ |
| 87 | cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(HOSTLDFLAGS) -o $@ $< \ | 87 | cmd_host-csingle = $(HOSTCC) $(hostc_flags) $(KBUILD_HOSTLDFLAGS) -o $@ $< \ |
| 88 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 88 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
| 89 | $(host-csingle): $(obj)/%: $(src)/%.c FORCE | 89 | $(host-csingle): $(obj)/%: $(src)/%.c FORCE |
| 90 | $(call if_changed_dep,host-csingle) | 90 | $(call if_changed_dep,host-csingle) |
| @@ -92,7 +92,7 @@ $(host-csingle): $(obj)/%: $(src)/%.c FORCE | |||
| 92 | # Link an executable based on list of .o files, all plain c | 92 | # Link an executable based on list of .o files, all plain c |
| 93 | # host-cmulti -> executable | 93 | # host-cmulti -> executable |
| 94 | quiet_cmd_host-cmulti = HOSTLD $@ | 94 | quiet_cmd_host-cmulti = HOSTLD $@ |
| 95 | cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \ | 95 | cmd_host-cmulti = $(HOSTCC) $(KBUILD_HOSTLDFLAGS) -o $@ \ |
| 96 | $(addprefix $(obj)/,$($(@F)-objs)) \ | 96 | $(addprefix $(obj)/,$($(@F)-objs)) \ |
| 97 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 97 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
| 98 | $(host-cmulti): FORCE | 98 | $(host-cmulti): FORCE |
| @@ -109,7 +109,7 @@ $(host-cobjs): $(obj)/%.o: $(src)/%.c FORCE | |||
| 109 | # Link an executable based on list of .o files, a mixture of .c and .cc | 109 | # Link an executable based on list of .o files, a mixture of .c and .cc |
| 110 | # host-cxxmulti -> executable | 110 | # host-cxxmulti -> executable |
| 111 | quiet_cmd_host-cxxmulti = HOSTLD $@ | 111 | quiet_cmd_host-cxxmulti = HOSTLD $@ |
| 112 | cmd_host-cxxmulti = $(HOSTCXX) $(HOSTLDFLAGS) -o $@ \ | 112 | cmd_host-cxxmulti = $(HOSTCXX) $(KBUILD_HOSTLDFLAGS) -o $@ \ |
| 113 | $(foreach o,objs cxxobjs,\ | 113 | $(foreach o,objs cxxobjs,\ |
| 114 | $(addprefix $(obj)/,$($(@F)-$(o)))) \ | 114 | $(addprefix $(obj)/,$($(@F)-$(o)))) \ |
| 115 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 115 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
| @@ -143,7 +143,7 @@ $(host-cxxshobjs): $(obj)/%.o: $(src)/%.c FORCE | |||
| 143 | # Link a shared library, based on position independent .o files | 143 | # Link a shared library, based on position independent .o files |
| 144 | # *.o -> .so shared library (host-cshlib) | 144 | # *.o -> .so shared library (host-cshlib) |
| 145 | quiet_cmd_host-cshlib = HOSTLLD -shared $@ | 145 | quiet_cmd_host-cshlib = HOSTLLD -shared $@ |
| 146 | cmd_host-cshlib = $(HOSTCC) $(HOSTLDFLAGS) -shared -o $@ \ | 146 | cmd_host-cshlib = $(HOSTCC) $(KBUILD_HOSTLDFLAGS) -shared -o $@ \ |
| 147 | $(addprefix $(obj)/,$($(@F:.so=-objs))) \ | 147 | $(addprefix $(obj)/,$($(@F:.so=-objs))) \ |
| 148 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 148 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
| 149 | $(host-cshlib): FORCE | 149 | $(host-cshlib): FORCE |
| @@ -153,7 +153,7 @@ $(call multi_depend, $(host-cshlib), .so, -objs) | |||
| 153 | # Link a shared library, based on position independent .o files | 153 | # Link a shared library, based on position independent .o files |
| 154 | # *.o -> .so shared library (host-cxxshlib) | 154 | # *.o -> .so shared library (host-cxxshlib) |
| 155 | quiet_cmd_host-cxxshlib = HOSTLLD -shared $@ | 155 | quiet_cmd_host-cxxshlib = HOSTLLD -shared $@ |
| 156 | cmd_host-cxxshlib = $(HOSTCXX) $(HOSTLDFLAGS) -shared -o $@ \ | 156 | cmd_host-cxxshlib = $(HOSTCXX) $(KBUILD_HOSTLDFLAGS) -shared -o $@ \ |
| 157 | $(addprefix $(obj)/,$($(@F:.so=-objs))) \ | 157 | $(addprefix $(obj)/,$($(@F:.so=-objs))) \ |
| 158 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 158 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
| 159 | $(host-cxxshlib): FORCE | 159 | $(host-cxxshlib): FORCE |
