Skip to contentSkip to conversation

omapdrmtest: move -lblah flags from LDFLAGS to LDADD where they belong

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 5, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omapdrmtest: move -lblah flags from LDFLAGS to LDADD where they belong

Fixes issues like this during linking:
undefined reference to symbol 'tanf@@GLIBC_2.4'

---
 ...m-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch | 28 ++++++++++++++++++++++
 .../omapdrmtest/omapdrmtest_1.0.0.bb               |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/omapdrmtest/files/0001-Makefile.am-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch
meta-arago-extras/recipes-graphics/omapdrmtest/files/0001-Makefile.am-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch new file +28 -0
new file mode 100644
index 0000000..f973500
@@ -0,0 +1,28 @@
+From 315652fa73555b71b7f1d0c77357f824c432c882 Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Wed, 4 Apr 2018 20:09:54 -0400
+Subject: [PATCH] Makefile.am: -lblah flags belong to LDADD, not LDFLAGS
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 99f4036..7ac6146 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -26,9 +26,8 @@ if ENABLE_DCE
+ bin_PROGRAMS += viddec3test copycodectest yuvcopytest videnc2test
+ endif
+ 
+-LDADD_COMMON = util/libutil.la @DRM_LIBS@ @DCE_LIBS@ @GBM_LIBS@ @EGL_LIBS@ @GLES2_LIBS@
++LDADD_COMMON = util/libutil.la @DRM_LIBS@ @DCE_LIBS@ @GBM_LIBS@ @EGL_LIBS@ @GLES2_LIBS@ -lm -lavcodec -lpthread
+ AM_CFLAGS = @DRM_CFLAGS@ @DCE_CFLAGS@ @GBM_CFLAGS@ @EGL_CFLAGS@ @GLES2_CFLAGS@ @WARN_CFLAGS@ -I$(top_srcdir)/util
+-LDFLAGS = -lm -lavcodec -lpthread
+ 
+ fliptest_SOURCES = fliptest.c
+ fliptest_LDADD = $(LDADD_COMMON)
+-- 
+2.7.4
+
meta-arago-extras/recipes-graphics/omapdrmtest/omapdrmtest_1.0.0.bb +1 -0
index 47d3245..36f5b81 100644
@@ -14,6 +14,7 @@ EXTRA_OEMAKE = "CC="${CC}""
 TARGET_CC_ARCH += "${LDFLAGS}"
 
 SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
+        file://0001-Makefile.am-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch \
 "
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.7.4