Skip to content

Commit

Permalink
Merge remote-tracking branch 'rui314/master'
Browse files Browse the repository at this point in the history
As some linkers (e.g. mold) do not support --cref, remove --cref.

If this merge looks a bit strange, that is becaused I messed it up.

Closes: #44
  • Loading branch information
ndim committed Jan 12, 2025
3 parents 58f9325 + d3c3fb6 + c1faadc commit 253ae42
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 253ae42

Please sign in to comment.