Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Issue 160556: linux: Don't force-export V8 symbols unless v8 is built as a shared library.... (Closed)

Created:
11 years, 4 months ago by piman
Modified:
9 years, 7 months ago
CC:
v8-dev, asac_debian.org
Visibility:
Public.

Description

linux: Don't force-export V8 symbols unless v8 is built as a shared library. That allows clients (chrome, o3d) to not have the symbols exported if v8 is built with -fvisibility=hidden, so that when the 2 are put together bad don't happen. See also http://code.google.com/p/chromium/issues/detail?id=17557

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M SConstruct View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/v8.h View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M include/v8-debug.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
piman
11 years, 4 months ago (2009-08-03 23:45:42 UTC) #1
Evan Martin
+dean, asac http://codereview.chromium.org/160556/diff/1/4 File SConstruct (right): http://codereview.chromium.org/160556/diff/1/4#newcode129 Line 129: 'CPPDEFINES': ['V8_SHARED'], whitespace on this is ...
11 years, 4 months ago (2009-08-03 23:48:35 UTC) #2
piman
http://codereview.chromium.org/160556/diff/1/4 File SConstruct (right): http://codereview.chromium.org/160556/diff/1/4#newcode129 Line 129: 'CPPDEFINES': ['V8_SHARED'], On 2009/08/03 23:48:35, Evan Martin wrote: ...
11 years, 4 months ago (2009-08-04 00:00:38 UTC) #3
Christian Plesner Hansen
Lgtm
11 years, 4 months ago (2009-08-04 07:28:55 UTC) #4
Søren Thygesen Gjesse
LGTM, except This change should go on branches/bleeding_edge and then merged to branches/1.2. http://codereview.chromium.org/160556/diff/7/1009 File ...
11 years, 4 months ago (2009-08-04 07:30:55 UTC) #5
piman
http://codereview.chromium.org/160556/diff/7/1009 File SConstruct (right): http://codereview.chromium.org/160556/diff/7/1009#newcode129 Line 129: 'CPPDEFINES': ['V8_SHARED'], On 2009/08/04 07:30:55, Søren Gjesse wrote: ...
11 years, 4 months ago (2009-08-04 07:43:53 UTC) #6
Søren Thygesen Gjesse
http://codereview.chromium.org/160556/diff/7/1009 File SConstruct (right): http://codereview.chromium.org/160556/diff/7/1009#newcode129 Line 129: 'CPPDEFINES': ['V8_SHARED'], On 2009/08/04 07:43:53, piman wrote: > ...
11 years, 4 months ago (2009-08-04 08:00:42 UTC) #7
piman
11 years, 4 months ago (2009-08-04 21:04:30 UTC) #8
On 2009/08/04 08:00:42, Søren Gjesse wrote:
> http://codereview.chromium.org/160556/diff/7/1009
> File SConstruct (right):
> 
> http://codereview.chromium.org/160556/diff/7/1009#newcode129
> Line 129: 'CPPDEFINES': ['V8_SHARED'],
> On 2009/08/04 07:43:53, piman wrote:
> > On 2009/08/04 07:30:55, Søren Gjesse wrote:
> > > How about using BUILDING_V8_SHARED to use the same define as on Windows?
> > 
> > It's defined both when compiled and used, which is why I chose a different
> > symbol, but it doesn't matter to me.
> 
> If you want it for both then I suggest to use BUILDING_V8_SHARED when building
> the shared library (that will mean moving it to V8_EXTRA_FLAGS in SConstruct),
> and use USING_V8_SHARED when building the client. In v8.h both these defines
> should end up have the same effect.
> 
> If you move it from  to V8_EXTRA_FLAGS it will only be defined when building
V8
> not when using it.
> You are right - keep it as V8_SHARED

I updated to bleeding_edge and uploaded a new patch, although rietveld doesn't
pick that up.

Since I don't have commit access, could anyone of you please apply it ? Thanks.

Powered by Google App Engine
This is Rietveld 408576698