Module: xenomai-forge
Branch: master
Commit: 6499a1897a96c35d0f14fd59bb48027073dd4fe7
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=6499a1897a96c35d0f14fd59bb48027073dd4fe7

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Sep 25 16:08:02 2014 +0200

boilerplate, copperplate: mention explicit dependency on libpthread

Required to prevent link issues to hidden glibc symbols, causing such
error:

         hidden symbol `foo' in .../libpthread_nonshared.a(some-object-file)
is referenced by DSO

In our case, a reference to pthread_atfork() from libboilerplate was
triggering the bug.

---

 lib/boilerplate/Makefile.am |    2 +-
 lib/boilerplate/Makefile.in |    2 +-
 lib/copperplate/Makefile.am |    2 +-
 lib/copperplate/Makefile.in |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/boilerplate/Makefile.am b/lib/boilerplate/Makefile.am
index 2940df9..0a14d18 100644
--- a/lib/boilerplate/Makefile.am
+++ b/lib/boilerplate/Makefile.am
@@ -1,7 +1,7 @@
 
 noinst_LTLIBRARIES = libboilerplate.la
 
-libboilerplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
+libboilerplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -lpthread -version-info 0:0:0
 
 libboilerplate_la_SOURCES =    \
        ancillaries.c           \
diff --git a/lib/boilerplate/Makefile.in b/lib/boilerplate/Makefile.in
index 4e307bf..1d62330 100644
--- a/lib/boilerplate/Makefile.in
+++ b/lib/boilerplate/Makefile.in
@@ -353,7 +353,7 @@ top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 noinst_LTLIBRARIES = libboilerplate.la $(am__append_2)
-libboilerplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
+libboilerplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -lpthread -version-info 0:0:0
 libboilerplate_la_SOURCES = ancillaries.c hash.c obstack.c time.c \
        $(am__append_1)
 nodist_libboilerplate_la_SOURCES = config-dump.h
diff --git a/lib/copperplate/Makefile.am b/lib/copperplate/Makefile.am
index 6533307..cb03c84 100644
--- a/lib/copperplate/Makefile.am
+++ b/lib/copperplate/Makefile.am
@@ -1,7 +1,7 @@
 
 lib_LTLIBRARIES = libcopperplate.la
 
-libcopperplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
+libcopperplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -lpthread -version-info 0:0:0
 
 libcopperplate_la_SOURCES =    \
        clockobj.c      \
diff --git a/lib/copperplate/Makefile.in b/lib/copperplate/Makefile.in
index 28bec4a..9fb4cae 100644
--- a/lib/copperplate/Makefile.in
+++ b/lib/copperplate/Makefile.in
@@ -458,7 +458,7 @@ top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 lib_LTLIBRARIES = libcopperplate.la
-libcopperplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -version-info 0:0:0
+libcopperplate_la_LDFLAGS = @XENO_LIB_LDFLAGS@ -lpthread -version-info 0:0:0
 libcopperplate_la_SOURCES = clockobj.c cluster.c eventobj.c init.c \
        internal.c internal.h main.c syncobj.c semobj.c threadobj.c \
        timerobj.c traceobj.c wrappers.c $(am__append_4) \


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to