Moz builds with non-standard Xorg location

Bruce Dubbs bruce.dubbs at gmail.com
Tue Jun 12 07:48:33 PDT 2007


Dan Nicholson wrote:
> On 6/11/07, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
>> DJ Lucas wrote:
>>> Guys, the line added to layout/build/Makefile.in in the Firefox
>>> instructions should be:
>>>
>>> EXTRA_DSO_LDOPTS += $(MOZ_XLIB_LDFLAGS) -lX11 -lXrender
>>>
>>>
>>> My firefox build ends with this little bit without:
>>> /usr/bin/ld: cannot find -lX11
>> Where is your copy of libX11.so?  Mine happens to be in /usr/X11R6/lib/
>> but I use the old methodology.
> 
> Out of curiosity, Bruce, could you try to find the same command in a
> seamonkey log? Search for '-o libgklayout.so'. I want to see where in
> the command the -L/usr/X11R6/lib is added.

OK, for seamonkey 1.1.1, I have:

 c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared
-Wl,-z,defs -Wl,-h,libgklayout.so -o libgklayout.so  nsLayoutModule.o
nsContentHTTPStartup.o nsContentDLF.o nsLayoutStatics.o
-Wl,--whole-archive ../../dist/lib/libgkbase_s.a
../../dist/lib/libgkgeneric_s.a ../../dist/lib/libgkforms_s.a
../../dist/lib/libgkstyle_s.a ../../dist/lib/libgkprinting_s.a
../../dist/lib/libgktable_s.a ../../dist/lib/libgkxulbase_s.a
../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconcvs_s.a
../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a
../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconxmlcon_s.a
../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a
../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a
../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a
../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a
../../dist/lib/libjsdomstorage_s.a  ../../dist/lib/libgkxultree_s.a
../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxultmpl_s.a
../../dist/lib/libinspector_s.a  ../../dist/lib/libgkmathmlcon_s.a
../../dist/lib/libgkmathmlbase_s.a  ../../dist/lib/libgkcontentxtf_s.a
../../dist/lib/libgkxtfbase_s.a  ../../dist/lib/libgksvgbase_s.a
../../dist/lib/libgkconsvgdoc_s.a ../../dist/lib/libgkcontentsvg_s.a
../../dist/lib/libgksvgrenderercairo_s.a  -Wl,--no-whole-archive
-L../../dist/bin -L../../dist/lib -lgkgfx
../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core
 -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
-L../../dist/bin -lmozjs -L/usr/X11R6/lib   -lXft -lX11 -lfreetype
-lXrender -lfontconfig    -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0    -lcairo    -Wl,--version-script
-Wl,/tmp/seamonkey/mozilla/build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -ldl -lm

The part we are looking for is '-L/usr/X11R6/lib   -lXft -lX11'

  -- Bruce



More information about the blfs-dev mailing list