Re: [Tracker] ANNOUNCE: tracker 0.7.28 released
- From: Michael Biebl <mbiebl gmail com>
- To: Adrien Bustany <madcat mymadcat com>
- Cc: Tracker mailing list <tracker-list gnome org>
- Subject: Re: [Tracker] ANNOUNCE: tracker 0.7.28 released
- Date: Sun, 28 Mar 2010 16:56:35 +0200
2010/3/28 Adrien Bustany <madcat mymadcat com>:
Thanks for the report! I have a few symbols that belong to my code, I'll
fix that. BTW, couldn't we have a C macro to export symbols, something
along the lines of
TRACKER_EXPORT void
tracker_my_function_that_should_be_public (void)
rather than playing with regexps in the Makefile ? I've no idea of how it
would be done though. I know KDE does it, so it should be doable.
I guess they use GCC visibility support.
There are a few methods how you can control which symbols are exported.
1/ If it's only used in the same source file, you can use static
2/ A linker version script, gives you full control over which symbols
are exported but needs to be kept up-to-date
3/ libtools -export-symbols(-regex) support (internally converted to a
version script)
3/ means the least work but also it can happen that symbols slip
through unintentionally.
Cheers,
Michael
[1] http://gcc.gnu.org/wiki/Visibility
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]