Closed
Bug 458075
Opened 16 years ago
Closed 16 years ago
thunderbird-bin shouldn't try and link directly with libtracemalloc anymore
Categories
(Thunderbird :: Build Config, defect)
Thunderbird
Build Config
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gozer, Unassigned)
Details
Attachments
(1 file)
529 bytes,
patch
|
kairo
:
review+
|
Details | Diff | Splinter Review |
As part of work on bug 435122, the need for the final executable to link directly to libtracemalloc has been removed.
The side effect of this change is that when building Thunderbird with --enable-shared, generating thunderbird-bin tries to link with -ltracemalloc, and that will fail. With static builds, we just end up double-linking against tracemalloc.
Attached patch simply removes the special case for libtracemalloc
Sunbird suffers from a similar problem.
Attachment #341298 -
Flags: review?(kairo)
Updated•16 years ago
|
Attachment #341298 -
Flags: review?(kairo) → review+
Comment 1•16 years ago
|
||
Comment on attachment 341298 [details] [diff] [review]
[checked in] Don't try and directly link with tracemalloc anymore
I've never built with tracemalloc, so I don't actually know much about this, but I believe you saying it fails (your comment is wrong about static though as this is in a non-static-only ifdef).
Reporter | ||
Comment 2•16 years ago
|
||
The code goes like shis:
ifndef BUILD_STATIC_LIBS
/* So we don't have --enable-static (i.e. --enable-shared)
ifdef NS_TRACE_MALLOC
/* We have --enable-tracemalloc
EXTRA_DSO_LIBS += tracemalloc
/* Here we explicitely expect to be able to link to a *dynamic* library called tracemalloc, boom! */
Basically, there is never going to be a libtracemalloc.so anymore, when enabling tracemalloc, it just ends up statically linked inside the guys of XPCOM somewhere, so no clients of tracemalloc need special linking with it.
Reporter | ||
Comment 3•16 years ago
|
||
Comment on attachment 341298 [details] [diff] [review]
[checked in] Don't try and directly link with tracemalloc anymore
changeset: 569:a3db346b2e2a
tag: tip
user: Philippe M. Chiasson <gozer@mozillamessaging.com>
date: Thu Oct 09 16:33:53 2008 -0400
summary: Bug 458075. It's not necessary (and a bug, actually) to link against libtracemalloc directly anymore. r=KaiRo
Attachment #341298 -
Attachment description: Don't try and directly link with tracemalloc anymore → [checked in] Don't try and directly link with tracemalloc anymore
Reporter | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•