Skip to content

Commit 59540ed

Browse files
authored
Merge pull request #12646 from dhebbeker/fix/fix-makefile-for-windows
Makefile: fix for overlong command line
2 parents 4a5fac3 + dd02ac0 commit 59540ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export/makefile/Makefile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ $(PROJECT).link_script{{link_script_ext}}: $(LINKER_SCRIPT)
135135

136136
{% block target_project_elf %}
137137
$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) {% if pp_cmd -%} $(PROJECT).link_script{{link_script_ext}} {% else%} $(LINKER_SCRIPT) {% endif %}
138-
+@echo "$(filter %.o, $^)" > .link_options.txt
138+
$(file > .link_options.txt,$(filter %.o, $^)
139139
+@echo "link: $(notdir $@)"
140140
@$(LD) $(LD_FLAGS) {{link_script_option}} $(filter-out %.o, $^) $(LIBRARY_PATHS) --output $@ {{response_option}}.link_options.txt $(LIBRARIES) $(LD_SYS_LIBS)
141141
{% endblock %}

0 commit comments

Comments
 (0)