skin libs, libtool warnings, and -module
Hi Philippe,
I noticed you fixed the libtool warning during xenomai build - by linking the testsuite statically... :-/ This is just a workaround and doesn't help external users.
Isn't the reason for this warnings that "-module" in every skin Makefile.am? At least, removing it also fixes external apps. Do we need it? I don't think so: -module is for preparing dlopen usage, but who will use it with skin libs?
Jan
Quoted 5 lines · Jan Kiszka
Hi Philippe,
I noticed you fixed the libtool warning during xenomai build - by linking the testsuite statically... :-/ This is just a workaround and doesn't help external users.
Yes, it's clearly hacky-patchy, however, I don't see how this would impact external users (yet)?
Quoted 5 lines
Isn't the reason for this warnings that "-module" in every skin Makefile.am? At least, removing it also fixes external apps. Do we need it? I don't think so: -module is for preparing dlopen usage, but who will use it with skin libs?
E.g. People who need to do late binding from some interpreter engine to the routines defined by those APIs.
Signature · 1 line
Philippe.
Quoted 9 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Hi Philippe,
I noticed you fixed the libtool warning during xenomai build - by linking the testsuite statically... :-/ This is just a workaround and doesn't help external users.
Yes, it's clearly hacky-patchy, however, I don't see how this would impact external users (yet)?
Those who also use libtool for their apps...
Quoted 11 lines
Quoted 6 lines
Isn't the reason for this warnings that "-module" in every skin Makefile.am? At least, removing it also fixes external apps. Do we need it? I don't think so: -module is for preparing dlopen usage, but who will use it with skin libs?
E.g. People who need to do late binding from some interpreter engine to the routines defined by those APIs.
Well, then we may better hack the related *.la files when installing them ("shouldnotlink=no"). I must confess that I still don't understand the reason behind this, but it seems that this warning is really useless at least on Linux.
Jan
Quoted 17 lines · Jan Kiszka
Quoted 8 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Hi Philippe,
I noticed you fixed the libtool warning during xenomai build - by linking the testsuite statically... :-/ This is just a workaround and doesn't help external users.
Yes, it's clearly hacky-patchy, however, I don't see how this would impact external users (yet)?
Those who also use libtool for their apps...
Quoted 5 lines
Quoted 4 lines
Isn't the reason for this warnings that "-module" in every skin Makefile.am? At least, removing it also fixes external apps. Do we need it? I don't think so: -module is for preparing dlopen usage, but who will use it with skin libs?
Quoted 9 lines
Quoted 3 lines
E.g. People who need to do late binding from some interpreter engine to the routines defined by those APIs.
Well, then we may better hack the related *.la files when installing them ("shouldnotlink=no"). I must confess that I still don't understand the reason behind this, but it seems that this warning is really useless at least on Linux.
And this is an attempt to silence them at least for the installed libnative.la:
skins/native/Makefile.am (working copy) renamed from skins/native/Makefile.am (revision 612) +4 -0
@@ -20,3 +20,9 @@ libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/include + +install-exec-hook: + for la in $(lib_LTLIBRARIES); do \ + sed -e 's/shouldnotlink=yes/shouldnotlink=no/'
$(DESTDIR)$(libdir)/$$la > $(DESTDIR)$(libdir)/$$la.patched; \
+ mv $(DESTDIR)$(libdir)/$$la.patched $(DESTDIR)$(libdir)/$$la; \
+ done
Jan