All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty/master][PATCH 1/8] glsdk-example-apps: fix library linking issues
@ 2017-03-27  2:10 Denys Dmytriyenko
  2017-03-27  2:10 ` [morty/master][PATCH 2/8] ti-gc320-tests: relax assignment of CC and other tools Denys Dmytriyenko
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Denys Dmytriyenko @ 2017-03-27  2:10 UTC (permalink / raw)
  To: meta-arago

From: Denys Dmytriyenko <denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 .../0001-Makefile-fix-library-linking-issues.patch | 60 ++++++++++++++++++++++
 .../glsdk-example-apps/glsdk-example-apps.bb       |  3 +-
 2 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-extras/recipes-graphics/glsdk-example-apps/files/0001-Makefile-fix-library-linking-issues.patch

diff --git a/meta-arago-extras/recipes-graphics/glsdk-example-apps/files/0001-Makefile-fix-library-linking-issues.patch b/meta-arago-extras/recipes-graphics/glsdk-example-apps/files/0001-Makefile-fix-library-linking-issues.patch
new file mode 100644
index 0000000..b7e8971
--- /dev/null
+++ b/meta-arago-extras/recipes-graphics/glsdk-example-apps/files/0001-Makefile-fix-library-linking-issues.patch
@@ -0,0 +1,60 @@
+From ecba95bde41a91d72aecf569c853a766a6ffd2aa Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys@ti.com>
+Date: Sun, 26 Mar 2017 13:39:47 -0400
+Subject: [PATCH] Makefile: fix library linking issues
+
+Signed-off-by: Denys Dmytriyenko <denys@ti.com>
+---
+ cpuload-plugins/Makefile.am | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+diff --git a/cpuload-plugins/Makefile.am b/cpuload-plugins/Makefile.am
+index 9c0bc1a..3df7b22 100644
+--- a/cpuload-plugins/Makefile.am
++++ b/cpuload-plugins/Makefile.am
+@@ -6,13 +6,12 @@ mpuload_CFLAGS = \
+ mpuload_SOURCES = mpuload.c
+ 
+ rprocinfo_CFLAGS = -O0 -g @DRM_CFLAGS@ @DCE_CFLAGS@
+-rprocinfo_LDFLAGS = @DCE_LIBS@ -lpthread
++rprocinfo_LDADD = @DCE_LIBS@ -lpthread
+ rprocinfo_SOURCES = rprocinfo.c
+ 
+-pvrscope_CXXFLAGS = -I. -lrt -lm -lpthread -ldl
++pvrscope_CXXFLAGS = -I.
++pvrscope_LDADD = $(top_srcdir)/cpuload-plugins/libPVRScopeDeveloper.a -lrt -lm -lpthread -ldl
+ pvrscope_SOURCES = pvrscope.cpp
+-LIBS = $(top_srcdir)/cpuload-plugins/libPVRScopeDeveloper.a
+-
+ 
+ # Specify any libraries that need to be built here.  Follow the convention
+ # libxxx.a otherwise autotools will complain about non-canonical names.
+@@ -26,17 +25,15 @@ include_HEADERS=
+ ##
+ 
+ read32k_driver_SOURCES= read32k_driver.c
+-read32k_driver_LDADD = libread32k.a
++read32k_driver_LDADD = libread32k.a -lm
+ read32k_driver_CFLAGS = -I.
+-read32k_driver_LDFLAGS= -lm
+ 
+ readproc_SOURCES = readproc.c
+-readproc_LDFLAGS = -lm
++readproc_LDADD = -lm
+ 
+ waitforweston_SOURCES = waitforweston.c
+-waitforweston_LDADD = libread32k.a
++waitforweston_LDADD = libread32k.a -lm @DRM_LIBS@ -lpthread -lrt @WAYLAND_LIBS@ @UDEV_LIBS@
+ waitforweston_CFLAGS = -I. @DRM_CFLAGS@
+-waitforweston_LDFLAGS = @DRM_LIBS@ -lpthread -lrt -lm @WAYLAND_LIBS@ @UDEV_LIBS@
+ 
+ ##
+ # Libraries
+@@ -45,4 +42,3 @@ waitforweston_LDFLAGS = @DRM_LIBS@ -lpthread -lrt -lm @WAYLAND_LIBS@ @UDEV_LIBS@
+ libread32k_a_SOURCES = read32k.c
+ libread32k_a_CFLAGS = -I.
+ include_HEADERS+=./read32k.h
+-
+-- 
+2.7.4
+
diff --git a/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb b/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
index 3d3e155..81a6c3f 100644
--- a/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
+++ b/meta-arago-extras/recipes-graphics/glsdk-example-apps/glsdk-example-apps.bb
@@ -12,7 +12,8 @@ S = "${WORKDIR}/git"
 inherit autotools pkgconfig
 
 SRC_URI = "git://git.ti.com/glsdk/example-applications.git;protocol=git \
-	 "
+	file://0001-Makefile-fix-library-linking-issues.patch \
+"
 
 SRCREV="f7562ecf76c559972205d7faaa3b50bdb43de238"
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-27  2:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27  2:10 [morty/master][PATCH 1/8] glsdk-example-apps: fix library linking issues Denys Dmytriyenko
2017-03-27  2:10 ` [morty/master][PATCH 2/8] ti-gc320-tests: relax assignment of CC and other tools Denys Dmytriyenko
2017-03-27  2:10 ` [morty/master][PATCH 3/8] gstreamer1.0-plugins-dsp66: correct use of CPP/CXX and other standard variables Denys Dmytriyenko
2017-03-27  2:10 ` [morty/master][PATCH 4/8] libarch: calls doxygen and zip, depends on corresponding native packages Denys Dmytriyenko
2017-03-27  2:10 ` [morty/master][PATCH 5/8] linalg: fix toolchain variables, depend on doxygen and zip native pkgs Denys Dmytriyenko
2017-03-27  2:10 ` [master][PATCH 6/8] weston: disable local patches - no longer apply to 2.x Denys Dmytriyenko
2017-03-27  2:10 ` [master][PATCH 7/8] layer.conf: add groff to HOSTTOOLS Denys Dmytriyenko
2017-03-27  2:10 ` [master][PATCH 8/8] branding-core: disable mmip feature due to gstreamer breakage Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.