Your Search Results

    EXTRA_DSO_LIBS

    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.

    Set By

    Tree makefiles set EXTRA_DSO_LIBS before including rules.mk.

    Example

    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)
    

     

    Document Tags and Contributors

    Contributors to this page: Benjamin Smedberg, fscholz, Waldo, gps
    Last updated by: fscholz,