Skip to content

Commit 539cf3f

Browse files
authored
Merge pull request #12666 from dhebbeker/fix/revert-pull-12646
Makefile: render compatible with some GNU make versions (revert #12646)
2 parents 4f4c8c4 + 26043e5 commit 539cf3f

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-
$(file > .link_options.txt,$(filter %.o, $^)
138+
+@echo "$(filter %.o, $^)" > .link_options.txt
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)