mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
build: only link to what we really use
At least linux has the -Wl,--as-needed option. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
660510ee4c
commit
73fbce61d7
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE
|
|||
FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags)
|
||||
FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Llib -lnotmuch $(GMIME_LDFLAGS) $(TALLOC_LDFLAGS)
|
||||
FINAL_NOTMUCH_LINKER = CC
|
||||
ifneq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1)
|
||||
ifeq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1)
|
||||
FINAL_NOTMUCH_LDFLAGS += -Wl,--as-needed
|
||||
else
|
||||
FINAL_NOTMUCH_LDFLAGS += $(CONFIGURE_LDFLAGS)
|
||||
FINAL_NOTMUCH_LINKER = CXX
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue