Skip to content

Commit

Permalink
Use -z muldefs to avoid the multiple definitions bug without -flto
Browse files Browse the repository at this point in the history
This fixes github issue #64

Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Feb 6, 2017
1 parent 4d4282e commit d3247e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ cflags = $(CFLAGS) -I${TOPDIR}/src/include/efivar/ \
clang_ccldflags =
gcc_ccldflags =
ccldflags = $(cflags) -L. $(CCLDFLAGS) $(LDFLAGS) \
-Wl,-z,muldefs \
$(if $(findstring clang,$(CCLD)),$(clang_ccldflags),) \
$(if $(findstring gcc,$(CCLD)),$(gcc_ccldflags),) \
$(call pkg-config-ccldflags)
Expand Down

0 comments on commit d3247e2

Please sign in to comment.