[Mesa-dev] [PATCH 2/2] targets/xvmc: export only necessary symbols

Christian König deathsimple at vodafone.de
Sun Nov 17 00:55:00 PST 2013


Am 16.11.2013 23:29, schrieb Ilia Mirkin:
> On Sat, Nov 16, 2013 at 4:39 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> Export only XvMC* symbols for the xvmc targets.
>>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>
>
> Works fine on my NV42, the vl_screen* and nouveau_drm_screen_create
> symbols are indeed gone.

Haven't tested it, but it sounds like a good idea to me as well. Patch is:

Reviewed-by: Christian König <christian.koenig at amd.com>

>> ---
>>   src/gallium/Automake.inc | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
>> index b6b9b36..1e4a34f 100644
>> --- a/src/gallium/Automake.inc
>> +++ b/src/gallium/Automake.inc
>> @@ -65,11 +65,11 @@ GALLIUM_VDPAU_LINKER_FLAGS = \
>>          -shared \
>>          -no-undefined
>>
>> -# TODO: add -export-symbols-regex
>>   GALLIUM_XVMC_LINKER_FLAGS = \
>>          -module \
>>          -version-number $(XVMC_MAJOR):$(XVMC_MINOR) \
>>          -shared \
>> +       -export-symbols-regex '^XvMC' \
>>          -no-undefined
>>
>>   GALLIUM_VDPAU_LIB_DEPS = \
>> --
>> 1.8.4.2
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list