OK, it works with the hidden visibility! I linked some static librarys
to my shared one where I forgot to use this visibility - now that this
is fixed everything is fine :-)
On Tue, Mar 5, 2013 at 7:02 PM, David Carlos Manuelda
wrote:
> El Martes, 5 de marzo de 2013 18:53:37 Satz Klauer escribió
El Martes, 5 de marzo de 2013 18:53:37 Satz Klauer escribió:
> __attribute__ ((visibility ("default")))
And why not __attribute__ ((visibility ("hidden"))) for symbols you don't want
to be exported and __attribute__ ((visibility ("default"))) for the ones you
want to be exported?
You can also def
That's what I'm doing now:
libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused
-Wno-unused-result -fvisibility=hidden
libtool --mode=link g++ -fvisibility=hidden -export-symbols-regex
'mylib_' -shared -rpath /usr/lib $(LFLAGS)
Beside of that all functions to be exported are declared as
__
Hi,
On 04.03.2013 07:23, Satz Klauer wrote:
> libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused [...]
> As far as I understood it, the statement "-export-symbols-regex
> mylib_" should ensure only functions starting with "mylib_" should be
> exported by the resulting library.
Indeed, h
Sounds good, I'll check that. But doesn't makes that the whole
-export-symbol-... command line options of libtool obsolete?
On Mon, Mar 4, 2013 at 8:31 AM, David wrote:
> I cant remember now the syntax, but maybe the gcc hidden visibility
> attribute is what you are looking for.
>
> El 04/03/201
I cant remember now the syntax, but maybe the gcc hidden visibility
attribute is what you are looking for.
El 04/03/2013 08:06, "Satz Klauer" escribió:
> I'm creating a shared library using libtool:
>
> libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused
> -Wno-unused-result $(CFLAGS) $(LF
I'm creating a shared library using libtool:
libtool --mode=compile g++ -Wall -fPIC -shared -Wno-unused
-Wno-unused-result $(CFLAGS) $(LFLAGS)
libtool --mode=link g++ -shared -export-symbols-regex mylib_ -rpath
/usr/lib $(LFLAGS)
(That's a snipped only, there of course is the part that causes
com