* [Buildroot] [PATCH 1/1] package/opencv: Do not add libdl to LINKER_LIBS for static builds
@ 2016-09-24 17:31 Bernd Kuhls
2016-10-26 21:34 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-09-24 17:31 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/765/7657e01481995a4f0d725467e935a83928a59a04/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
...txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 package/opencv/0004-CMakeLists.txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch
diff --git a/package/opencv/0004-CMakeLists.txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch b/package/opencv/0004-CMakeLists.txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch
new file mode 100644
index 0000000..6d63411
--- /dev/null
+++ b/package/opencv/0004-CMakeLists.txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch
@@ -0,0 +1,39 @@
+From 22e03ef8a9e3adcbc6b2f16c3cc98e4e14443eed Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sat, 24 Sep 2016 17:51:22 +0200
+Subject: [PATCH 1/1] CMakeLists.txt: Do not add libdl to LINKER_LIBS for
+ static builds
+
+Without this patch -ldl is present in opencv.pc which breaks OpenCV
+detection by ffmpeg, detected by buildroot autobuilders:
+
+http://autobuild.buildroot.net/results/765/7657e01481995a4f0d725467e935a83928a59a04//ffmpeg-3.1.3/config.log
+
+/home/peko/autobuild/instance-1/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.9.4/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find -ldl
+
+Patch sent upstream: https://github.com/opencv/opencv/pull/7337
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ CMakeLists.txt | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 007b80d..99b047d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -457,7 +457,10 @@ if(UNIX)
+ elseif(${CMAKE_SYSTEM_NAME} MATCHES "QNX")
+ set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} m)
+ else()
+- set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m pthread rt)
++ if(BUILD_SHARED_LIBS)
++ set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl)
++ endif()
++ set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} m pthread rt)
+ endif()
+ else()
+ set(HAVE_LIBPTHREAD YES)
+--
+2.9.3
+
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/opencv: Do not add libdl to LINKER_LIBS for static builds
2016-09-24 17:31 [Buildroot] [PATCH 1/1] package/opencv: Do not add libdl to LINKER_LIBS for static builds Bernd Kuhls
@ 2016-10-26 21:34 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-10-26 21:34 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 24 Sep 2016 19:31:57 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/765/7657e01481995a4f0d725467e935a83928a59a04/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch | 39 ++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
> create mode 100644 package/opencv/0004-CMakeLists.txt-Do-not-add-libdl-to-LINKER_LIBS-for-s.patch
Applied to master, thanks. Could you please follow-up with the feedback
from upstream in the Github pull request?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-26 21:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-24 17:31 [Buildroot] [PATCH 1/1] package/opencv: Do not add libdl to LINKER_LIBS for static builds Bernd Kuhls
2016-10-26 21:34 ` Thomas Petazzoni
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.