Chromium Code Reviews
Help | Chromium Project | Sign in
(6)

Issue 3018003: Fix the -fvisibility=hidden settings to work with the linux shlib build.... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 10 months ago by awong (On leave)
Modified:
4 years ago
CC:
chromium-reviews, jam
Visibility:
Public.

Description

Fix the -fvisibility=hidden settings to work with the linux shlib build. Inside chromium's src/build/common.gypi, when a shared library build is specified, the -fvisibility=hidden flag is explicitly removed via a cflags! exclusion. This overrides all cflags set in lower gyp files. It is also incorrect for building plugins. To get around this, we use a gyp pattern list so that the -fvisibility=hidden flag is readded by gyp after the exclusion is applied. -fvisibility=hidden is particularly important here because Module::Get() has a second definition inside chromium that is used by the internal pepper plugins. Without -fvisibility=hidden, the symbol resolution gets crossed after the plugin is loaded such that the browser internal verison of Module::Get() is invoked by ppapi's C++ wrappers even though the it is the plugin's version of Module::Get() that is initialized. This usually manifests itself as all externally loaded ppapi plugins that use the ppapi C++ wrappers failing to load. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -15 lines) Patch
M ppapi.gyp View 1 2 6 chunks +8 lines, -15 lines 0 comments Download
Trybot results:
Commit: CQ not working?

Messages

Total messages: 6 (0 generated)
awong (On leave)
More internal pepper fun. When I checked in the chromoting plugin, the linux dbg shlib ...
4 years, 10 months ago (2010-07-15 21:11:31 UTC) #1
Mark Mentovai - out til August
http://codereview.chromium.org/3018003/diff/1/2 File ppapi.gyp (right): http://codereview.chromium.org/3018003/diff/1/2#newcode18 ppapi.gyp:18: 'cflags': ['-fPIC'], Maybe put -fvisibility=hidden here too so you ...
4 years, 10 months ago (2010-07-15 21:13:33 UTC) #2
awong (On leave)
Replaced Darin with Brett as a reviewer since Darin seems to be busy today. On ...
4 years, 10 months ago (2010-07-15 21:18:58 UTC) #3
Mark Mentovai - out til August
STOP. Grammartime! http://codereview.chromium.org/3018003/diff/2002/5001 File ppapi.gyp (right): http://codereview.chromium.org/3018003/diff/2002/5001#newcode20 ppapi.gyp:20: # This is needed to make Linux ...
4 years, 10 months ago (2010-07-15 21:20:20 UTC) #4
awong (On leave)
On 2010/07/15 21:20:20, Mark Mentovai wrote: > STOP. Grammartime! Hah. Yessir Mr. Hammer. > http://codereview.chromium.org/3018003/diff/2002/5001 ...
4 years, 10 months ago (2010-07-15 21:25:44 UTC) #5
brettw
4 years, 10 months ago (2010-07-15 21:53:51 UTC) #6
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be