Status: New
Owner: ----

New issue 2016 by [email protected]: v8 shared library does not export symbols under gcc 3.3
http://code.google.com/p/v8/issues/detail?id=2016

The macro "V8EXPORT" is incorrect:

    #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED)

Should be

#if defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED)

As

    #define V8EXPORT __attribute__ ((visibility("default")))

Works in gcc 3.3+.

Without this attempting to link to a gcc 3.x built v8 is futile.

Attachments:
        v8-export-fix.patch  3.4 KB

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to