[gst-devel] gstreamer and the visibility feature of gcc 4.*
vtorri at univ-evry.fr
Tue Aug 15 21:22:37 CEST 2006
On Tue, 15 Aug 2006, David Schleef wrote:
> On Tue, Aug 15, 2006 at 09:15:54AM +0200, Vincent Torri wrote:
>> I recently used that visibility feature in avisynth, and I was wondering
>> why the plugins I wrote for it was not loeaded. The reason is that, in
>> gstconfig.h(.in), GST_PLUGIN_EXPORT is defined to nothing.
> I think you missed the purpose of GST_PLUGIN_EXPORT. It's for handling
> the magic required to export data symbols in Window DLLs.
and what the visibility feature of gcc 4.* is for ? ;)
you defined a var that can be used to tell the compiler that it must
export that symbol, while all others are hidden. So why not using it on
linux (well using it with gcc) too ? The shared lib of gstreamer and the
plugins will be smaller (less time to load them), the compiler will be
smarter. Almost only advantages. I don't see why this var can't be used on
the same purpose when one compiles gstreamer and other packages with gcc.
In case of gstreamer, you can use another name (GAPI, for example), or
rename that variable (which implies to modify all the plugins, but with a
find and sed, it sould not be hard)
More information about the gstreamer-devel