[Buildroot] [PATCH 1/1] openzwave: fix compilation of MinOZW
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Oct 23 12:38:46 UTC 2016
Hello,
On Tue, 27 Sep 2016 17:00:45 +0200, Fabrice Fontaine wrote:
> LIBDIR was used in cpp/examples/MinOZW/Makefile to add dynamic
> libraries. However, as it was unset by default, the cross-compilation
> could fail if the host had a library such as libnss3.so in /.
> To fix this issue, this patch sets LIBDIR to top_buildir if it is unset
>
> Fixes:
> http://autobuild.buildroot.net/results/68719fdf1320a69310bada6d3c47654dacdb5898
>
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine at orange.com>
Why is a patch needed?
Doing the following seems to be sufficient:
diff --git a/package/openzwave/openzwave.mk b/package/openzwave/openzwave.mk
index 2723086..9c50cb8 100644
--- a/package/openzwave/openzwave.mk
+++ b/package/openzwave/openzwave.mk
@@ -29,7 +29,8 @@ OPENZWAVE_MAKE_OPTS = \
instlibdir=/usr/lib \
pkgconfigdir=/usr/lib/pkgconfig \
sysconfdir=/etc/openzwave \
- DOXYGEN=
+ DOXYGEN= \
+ LIBDIR=$(@D)
define OPENZWAVE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(OPENZWAVE_MAKE_OPTS) -C $(@D)
If you agree with this, could you submit a patch with this solution,
preferably after adding a comment that explains why we're passing such
a strange value for LIBDIR.
Of course, please submit a bug report to the upstream project.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list