I am build XULRunner using mozilla-central trunk.
I want to build it with --enable-static option.
Here is my mozconfig.
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_CO_PROJECT=xulrunner
mk_add_options MOZ_OBJDIR=@topsrcdir@/xulrunner-dbg
ac_add_options --enable-application=xulrunner
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-static --disable-libxul
ac_add_options --disable-tests
ac_add_options --disable-javaxpcom
but i got the following make error.
The Makefile of \xulrunner\app\ have the following EXTRA_DSO_LIBS.
ifndef MOZ_ENABLE_LIBXUL
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
LIBS += $(DIST)/bin/XUL
else
EXTRA_DSO_LIBS += xul
endif
i don't know which module make this xul.lib .
Can you help me ?
make[5]: *** No rule to make target `../../dist/lib/xul.lib', needed
by `xulrunner.exe'. Stop.
make[5]: Leaving directory `/xulrunner-dbg/xulrunner/app'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/xulrunner-dbg/xulrunner'
make[3]: *** [libs_tier_app] Error 2
make[3]: Leaving directory `/xulrunner-dbg'
make[2]: *** [tier_app] Error 2
make[2]: Leaving directory `/xulrunner-dbg'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/xulrunner-dbg'
make: *** [build] Error 2
This is not a supported build configuration, we apparently just forgot
to make it error out in configure. --enable-static does not mean what
you probably think it means. It is used to build the application as
(mostly) a single large binary. The default (libxul) configuration of
xulrunner is similar, but instead links most of gecko into a single
large DSO, libxul. Neither of these configurations imply anything
about linking to external libraries, although by default we build most
of our dependencies in-tree, so there aren't very many external
dependencies.
-Ted
-Ted