All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@micronovasrl.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] motion: fix build failure due to missing drmGetVersion() and drmFreeVersion()
Date: Sun,  9 Sep 2018 21:33:43 +0200	[thread overview]
Message-ID: <20180909193343.117159-1-giulio.benetti@micronovasrl.com> (raw)

During static linking -ldrm is listed too early respect -lavutil.
This cause build failure.

Append extra -ldrm at the tail of $(LIBS) list.

Fixes:
http://autobuild.buildroot.net/results/395/395be1a9cab824b82ef34c2ebd84d54243029b33//

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
 ...-fix-static-linking-for-ldrm-library.patch | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/motion/0002-Makefile.in-fix-static-linking-for-ldrm-library.patch

diff --git a/package/motion/0002-Makefile.in-fix-static-linking-for-ldrm-library.patch b/package/motion/0002-Makefile.in-fix-static-linking-for-ldrm-library.patch
new file mode 100644
index 0000000000..591cca66eb
--- /dev/null
+++ b/package/motion/0002-Makefile.in-fix-static-linking-for-ldrm-library.patch
@@ -0,0 +1,30 @@
+From 7098dafaf297d70bb73a5320bdc522b66c456a56 Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <giulio.benetti@micronovasrl.com>
+Date: Sun, 9 Sep 2018 20:30:33 +0200
+Subject: [PATCH] Makefile.in: fix static linking for -ldrm library
+
+While linking statically -ldrm library is listed too early than -lavutil.
+
+Append additional -ldrm entry to linker $(LIBS) list.
+
+Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 94c7d40..5cfb490 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -39,7 +39,7 @@ CFLAGS       = @CFLAGS@ -Wall \
+ 	 -DMOTIONDOCDIR=\"$(DESTDIR)$(docdir)\"    \
+ 	 @FFMPEG_CFLAGS@ @MMAL_CFLAGS@
+ LDFLAGS      = @LDFLAGS@
+-LIBS         = @LIBS@  @MMAL_LIBS@ @FFMPEG_LIBS@
++LIBS         = @LIBS@ @FFMPEG_LIBS@ @MMAL_LIBS@ -ldrm
+ OBJ          = motion.o logger.o conf.o draw.o jpegutils.o \
+ 			   video_loopback.o video_v4l2.o video_common.o video_bktr.o \
+ 			   netcam.o netcam_http.o netcam_ftp.o netcam_jpeg.o netcam_wget.o \
+-- 
+2.17.1
+
-- 
2.17.1

             reply	other threads:[~2018-09-09 19:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-09 19:33 Giulio Benetti [this message]
2018-09-10  6:35 ` [Buildroot] [PATCH] motion: fix build failure due to missing drmGetVersion() and drmFreeVersion() Giulio Benetti
2018-09-10  7:21 ` Thomas Petazzoni
2018-09-11 13:27   ` Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180909193343.117159-1-giulio.benetti@micronovasrl.com \
    --to=giulio.benetti@micronovasrl.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.