Forcing using own third_party even if it exists in system.

6 views
Skip to first unread message

naquad

unread,
Apr 11, 2011, 9:07:50 AM4/11/11
to chromi...@chromium.org
Hi.

I'm doing cross-compilation for 32 linux bit system on 64 bit box with different distro.
Issue is I can't force chromium to use its own libraries.
Particularly i need libbz2.so and libpng.so. First I've been trying to do

GYP_DEFINES="target_arch=ia32 werror= use_system_libpng=0 use_system_bzip2=0" gclient runhooks --force
make -j5 BUILDTYPE=Release chrome

but chrome still was linked with system libbz2 and libpng.
I've tried to modify their GYP files and force corresponding variables to be 0 in condition section,
but that didn't help either.

Any ideas?

Regards, Daniel.

Adam Langley

unread,
Apr 11, 2011, 9:31:48 AM4/11/11
to naq...@gmail.com, chromi...@chromium.org
On Mon, Apr 11, 2011 at 9:07 AM, naquad <naq...@gmail.com> wrote:
> I'm doing cross-compilation for 32 linux bit system on 64 bit box with
> different distro.
> Issue is I can't force chromium to use its own libraries.

A dependency on the system libraries can be coming from Chrome, or
from any of the shared libraries that it does depend on. If you first
delete out/ and then do a build, you can tell if the bundled versions
of those libraries are getting built by the .o files that will appear
in out/


AGL

naquad

unread,
Apr 11, 2011, 9:38:02 AM4/11/11
to Adam Langley, chromi...@chromium.org
They're built, but still system libraries are linked.

2011/4/11 Adam Langley <a...@chromium.org>

Adam Langley

unread,
Apr 11, 2011, 9:42:35 AM4/11/11
to naquad, chromi...@chromium.org
On Mon, Apr 11, 2011 at 9:38 AM, naquad <naq...@gmail.com> wrote:
> They're built, but still system libraries are linked.

What's the output of:

% objdump -x out/Release/chrome | grep NEEDED


AGL

naquad

unread,
Apr 11, 2011, 9:45:47 AM4/11/11
to Adam Langley, chromi...@chromium.org
libpng is not needed, but libbz2 is NEEDED.

2011/4/11 Adam Langley <a...@chromium.org>

Adam Langley

unread,
Apr 11, 2011, 10:03:11 AM4/11/11
to naquad, chromi...@chromium.org
On Mon, Apr 11, 2011 at 9:45 AM, naquad <naq...@gmail.com> wrote:
> libpng is not needed, but libbz2 is NEEDED.

How about

% cd /usr/lib/pkgconfig
% grep bz2 *


?

AGL

Reply all
Reply to author
Forward
0 new messages