minor improvements for Firefox, etc.

Mikhail Teterin mi+mx at aldan.algebra.com
Wed Jan 25 16:27:04 PST 2006


Hello!

The attached patch improves Firefox as follows:

	1. Use -fpic instead of -fPIC an all platforms except sparc64
	   and always define PIC (-DPIC) -- this is how bsd.lib.mk
	   compiles shared objects.

	2. Use the system's libz instead of compiling Mozilla's own libmozz.

	3. Use system's libbz2 instead of compiling Mozilla's own.

Yes, the 2. should be the case automatically, but is not, because Mozilla's 
configure insists on libz-1.2.3 and we still use 1.2.2. The reason for 
Mozilla's insistance, however, is in the security promblems found in 1.2.2. 
FreeBSD's standard libz, however, has this problems patched long ago (without 
bumping the version).

The goal of 1. is achieved in Firefox' own post-configure target -- it should, 
probably, migrate into mozilla/Makefile.common. With 2. and 3. taken care of, 
mozilla/Makefile.common should be ammended as per the second attachement to 
avoid any API-ABI (header-library) conflicts.

Yours,

	-mi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: firefox.diff
Type: text/x-diff
Size: 4505 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20060125/3dff5c9a/firefox.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mozilla.diff
Type: text/x-diff
Size: 532 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20060125/3dff5c9a/mozilla.bin


More information about the freebsd-gnome mailing list