• Peter Collingbourne's avatar
    Make gvr_shim a component. · 791b7080
    Peter Collingbourne authored
    This is really what we ought to be doing to avoid ODR violations
    caused by linking the prebuilt .a into multiple components, but
    I previously couldn't see a way to link the .a into the component
    .so with --whole-archive. However, it turns out that it's possible
    using ldflags. This is a little hackish but it's probably better than
    dealing with ODR violations.
    
    Bug: 749784
    Change-Id: I1ae275d57f36bc4a2c816d7f0ee8fdc4c000cf63
    Reviewed-on: https://chromium-review.googlesource.com/1016092Reviewed-by: default avataragrieve <agrieve@chromium.org>
    Reviewed-by: default avatarBiao She <bshe@chromium.org>
    Commit-Queue: Peter Collingbourne <pcc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#551711}
    791b7080
BUILD.gn 4.57 KB