Skip to content

Commit

Permalink
Avoid --cref linker option
Browse files Browse the repository at this point in the history
Not all linkers support that option, and it seems the option was included
solely for informational purposes (possibly to debug issues in the past).
Therefore, it appears safe to remove the option from the makefile.
  • Loading branch information
rui314 authored and ndim committed Jan 12, 2025
1 parent 58f9325 commit d3c3fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ $(2)_OBJS := $$(foreach src,$$($(2)_SOURCES),$$(if $$(filter %.c,$$(src)),$$(src
$(1): $$($(2)_OBJS)
$$(inhibit-build-command)
@$$(call print-rule-description,LINK,$$@)
$$(CC) -Wl,-Map=$(1).map,--cref $$(common_CFLAGS) $$(CFLAGS) $$(common_LDFLAGS) $$($(2)_LDFLAGS) $$(LDFLAGS) -o $$@ $$^ $$(common_LDADD) $$($(2)_LDADD) $$(LDADD)
$$(CC) -Wl,-Map=$(1).map $$(common_CFLAGS) $$(CFLAGS) $$(common_LDFLAGS) $$($(2)_LDFLAGS) $$(LDFLAGS) -o $$@ $$^ $$(common_LDADD) $$($(2)_LDADD) $$(LDADD)

$$(patsubst %.o,.deps/%.o.dep,$$($(2)_OBJS))):

Expand Down

0 comments on commit d3c3fb6

Please sign in to comment.