EXTRA DSO LIBS
From MDC
EXTRA_DSO_LIBS is a convenience variable. You set it to a list of libraries to link against, and rules.mk automatically creates the appropriate linker flags (e.g. -lfoo on Linux or foo.lib on Windows). rules.mk does not use this variable directly; the makefile must set it and then include it in EXTRA_DSO_LDOPTS.
[edit] Set By
Tree makefiles set EXTRA_DSO_LIBS before including rules.mk.
[edit] Example
DEPTH = ../../../.. topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk LIBRARY_NAME = example FORCE_SHARED_LIB = 1 EXTRA_DSO_LIBS = \ foo \ bar \ $(NULL) include $(topsrcdir)/config/rules.mk # rules.mk converts EXTRA_DSO_LIBS to -lfoo -lbar EXTRA_DSO_LDOPTS = \ $(EXTRA_DSO_LIBS) \ $(XPCOM_GLUE_LDOPTS) \ $(NSPR_LIBS) \ $(NULL)