[PATCH xorg-gtest] Add symbol version scripts
Stephen M. Webb
stephen.webb at canonical.com
Mon Feb 6 11:57:29 PST 2012
On 02/04/2012 03:05 PM, Chase Douglas wrote:
> It would be nice to explicitly list each class method, but there's no
> documentation on how to do it, and everything I try fails. At least this
> ensures we don't ship visible symbols that are really part of GTest.
>
> Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
> ---
>
> +XORG_GTEST_1.0 {
> + global:
> + extern "C++" {
> + xorg::testing::*;
> + "typeinfo for xorg::testing::Environment";
> + "typeinfo for xorg::testing::Test";
> + "typeinfo name for xorg::testing::Environment";
> + "typeinfo name for xorg::testing::Test";
> + "vtable for xorg::testing::Environment";
> + "vtable for xorg::testing::Test";
> + };
> +
> + local:
> + *;
> +};
This is fine but because of the wildcard you'll want to be extra
vigilant on new releases to make sure any added symbols do not get
accidentally versioned with XORG_GTEST_1.0 tag.
Reviewed-by: Stephen M. Webb <stephen.webb at canonical.com>
More information about the xorg-devel
mailing list