Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2011 11:46:23 -0700
From:      Evan Martin <evan@chromium.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        chromium@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   extra -lc in generated build files [Re: [solved] chromium doesn't open any page]
Message-ID:  <BANLkTikA9kAvBaZOC0TNxEegNE3NfOJyPw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
On Sun, Apr 17, 2011 at 11:38 AM, Baptiste Daroussin <bapt@freebsd.org> wro=
te:
>> I am responsible for the code that generates the .mk files. =A0Can you
>> paste the area around the file that contains the -lc flag? =A0I will
>> help diagnose where it's coming from.
>
> Here they are:
>
> app/app_unittests.target.mk.bak: =A0 =A0 =A0 =A0-lc \
> chrome/automated_ui_tests.target.mk.bak: =A0 =A0 =A0 =A0-lc \

Hm, it seems most likely that we're picking that up from a pkg-config file.

Can you try something like:

$ grep -- -lc /usr/lib/pkgconfig/*

(you might need to adjust the paths, I'm on Linux, sorry)
to see if any libraries we use are including it?

You can see the list of packages imported via pkg-config by looking at
build/linux/system.gyp in the Chrome tree.

$ grep libs-only-l build/linux/system.gyp
              '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)',
              '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
                  '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//=
")',
                  '<!@(<(pkg-config) --libs-only-l nss)',
              '<!@(<(pkg-config) --libs-only-l freetype2)',
              '<!@(<(pkg-config) --libs-only-l fontconfig)',
              '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
              '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
              '<!@(<(pkg-config) --libs-only-l x11)',
            '<!@(<(pkg-config) --libs-only-l xi)',
              '<!@(<(pkg-config) --libs-only-l xext)',
                  '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
          '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
              '<!@(<(pkg-config) --libs-only-l ibus-1.0)',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikA9kAvBaZOC0TNxEegNE3NfOJyPw>