* [Buildroot] [PATCH] tslib: fix plugin linking
@ 2010-04-28 20:42 luca at lucaceresoli.net
2010-05-01 20:56 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: luca at lucaceresoli.net @ 2010-04-28 20:42 UTC (permalink / raw)
To: buildroot
From: Luca Ceresoli <luca@lucaceresoli.net>
Fixes error: "Couldnt load module pthres" and similar.
Original patch: svn://svn.berlios.de/tslib/trunk at 56.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
.../tslib-1.0-link-plugins-against-libts.patch | 48 ++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
create mode 100644 package/tslib/tslib-1.0-link-plugins-against-libts.patch
diff --git a/package/tslib/tslib-1.0-link-plugins-against-libts.patch b/package/tslib/tslib-1.0-link-plugins-against-libts.patch
new file mode 100644
index 0000000..d60b6a1
--- /dev/null
+++ b/package/tslib/tslib-1.0-link-plugins-against-libts.patch
@@ -0,0 +1,48 @@
+commit 12435b337ea074bd31ccb03aff58c7eefa86f31c
+Author: kergoth <kergoth@a933c7a4-9bf7-0310-9141-a2e45189604d>
+Date: Sat Nov 1 20:46:07 2008 +0000
+
+ Link plugins against libts
+
+ Some plugins use tslib functions. Link those plugins against libts.
+ The problem is easy to see with LDFLAGS="-Wl,-no-undefined".
+ Without this change DirectFB in unable to use tslib because symbols
+ in the tslib plugins can't be resolved.
+
+ Signed-off-by: Ville Syrjala <syrjala@sci.fi>
+ Signed-off-by: Chris Larson <clarson@kergoth.com>
+
+ git-svn-id: svn://svn.berlios.de/tslib/trunk/tslib at 56 a933c7a4-9bf7-0310-9141-a2e45189604d
+
+diff --git a/plugins/Makefile.am b/plugins/Makefile.am
+index 3b902c2..4c4ef8b 100644
+--- a/plugins/Makefile.am
++++ b/plugins/Makefile.am
+@@ -114,15 +114,19 @@ pluginexec_LTLIBRARIES = \
+
+ variance_la_SOURCES = variance.c
+ variance_la_LDFLAGS = -module $(LTVSN)
++variance_la_LIBADD = $(top_builddir)/src/libts.la
+
+ dejitter_la_SOURCES = dejitter.c
+ dejitter_la_LDFLAGS = -module $(LTVSN)
++dejitter_la_LIBADD = $(top_builddir)/src/libts.la
+
+ linear_la_SOURCES = linear.c
+ linear_la_LDFLAGS = -module $(LTVSN)
++linear_la_LIBADD = $(top_builddir)/src/libts.la
+
+ pthres_la_SOURCES = pthres.c
+ pthres_la_LDFLAGS = -module $(LTVSN)
++pthres_la_LIBADD = $(top_builddir)/src/libts.la
+
+ # hw access
+ corgi_la_SOURCES = corgi-raw.c
+@@ -148,6 +152,7 @@ tatung_la_LDFLAGS = -module $(LTVSN)
+
+ input_la_SOURCES = input-raw.c
+ input_la_LDFLAGS = -module $(LTVSN)
++input_la_LIBADD = $(top_builddir)/src/libts.la
+
+ linear_h2200_la_SOURCES = linear-h2200.c
+ linear_h2200_la_LDFLAGS = -module $(LTVSN)
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-01 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28 20:42 [Buildroot] [PATCH] tslib: fix plugin linking luca at lucaceresoli.net
2010-05-01 20:56 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox