Closed Bug 261090 Opened 20 years ago Closed 20 years ago

pkg-config --libs can add things like -Wl,--export-dynamic to our command line

Categories

(SeaMonkey :: Build Config, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8alpha5

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

(Whiteboard: [patch])

Attachments

(1 file)

On my Fedora Core 2 system:
 $ pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

-Wl,--export-dynamic makes our libraries much larger.  I think we should use
--libs-only-L and --libs-only-l to avoid picking up options like this.

This bug was causing my libgklayout.so to be 911,936 bytes larger than it needed
to be by inflating the dynamic symbol table.  (same difference stripped or
not-stripped)
*** Bug 261089 has been marked as a duplicate of this bug. ***
Attachment #159795 - Flags: superreview?(darin)
Attachment #159795 - Flags: review?(bryner)
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8alpha4
Attachment #159795 - Flags: superreview?(darin) → superreview+
Attachment #159795 - Flags: review?(bryner) → review+
Fix checked in to trunk, 2004-09-29 22:19/23 -0700.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.8alpha4 → mozilla1.8alpha5
Would this be appropiate to also have for firefox 1.0. seems to me this would
result in a smaller gtk2 build
Flags: blocking-aviary1.0?
I think our official builds are built on older systems that don't have this problem.
Comment on attachment 159795 [details] [diff] [review]
patch

I'd like to get this on the branches for the linux distributors, unless there
were problems with this I'm not aware of.
Attachment #159795 - Flags: approval1.7.x?
Attachment #159795 - Flags: approval-aviary?
Flags: blocking-aviary1.0? → blocking-aviary1.0-
Comment on attachment 159795 [details] [diff] [review]
patch

a=asa for aviary and 1.7x checkin.
Attachment #159795 - Flags: approval1.7.x?
Attachment #159795 - Flags: approval1.7.x+
Attachment #159795 - Flags: approval-aviary?
Attachment #159795 - Flags: approval-aviary+
(In reply to comment #6)
> (From update of attachment 159795 [details] [diff] [review])
> I'd like to get this on the branches for the linux distributors, unless there
> were problems with this I'm not aware of.


The Fedora trio (Seamonkey, Firefox, and Thunderbird) of RPMs have shipped this
patch for over a month.  Seems fine.  Ship it.
Product: Browser → Seamonkey
Blocks: 298455
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: