On Mon, Oct 05, 2009 at 10:20:47AM -0700, Steven Knight wrote:
> The variable name is actually just 'library'.  The default is set in
> build/common.gypi.  You can either change the default variable right in
> build/common.gypi or set the environment variable
> GYP_DEFINES=library=shared_library to get a shared library build.
> (I have it modified locally in one of my checked-out Linux trees for
> periodic sanity checks that Linux at least nominally builds with shared
> libraries.  IIRC, a lot of the Linux folks use shared library builds
> regularly, for the much faster link times.)

I tried this, and it does indeed link far, far faster!
However, I got errors about RegisterInternalNaClPlugin():
/mnt/sda4/media/contrib/chrome2/home/chrome-svn/tarball/chromium/src/sconsbuild/Debug/lib/librenderer.so:
 undefined reference to `RegisterInternalNaClPlugin(bool (*)(int, int*))'
(Also one for libbrowser.so)
I see these are protected by #ifndef DISABLE_NACL and 
if (command_line.HasSwitch(switches::kInternalNaCl)), but why would that
affect things?  DISABLE_NACL should be defined or not the same for shared
or static build, and the HasSwitch is a run-time check.  If I comment them
out, then chrome links.  But the call is in RenderProcess::RenderProcess(),
surely not dead code that the static link would be removing.
Any idea what's going on here?

       -- Jacob


--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to