openzwave: Avoid picking host libraries
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 18 Jun 2017 21:23:40 +0000 (14:23 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sun, 18 Jun 2017 21:23:40 +0000 (14:23 -0700)
cpp/examples/MinOZW/Makefile contains this rule:

LIBS =  $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/*.so
$(top_builddir)/*.dylib $(top_builddir)/cpp/build/*.so
$(top_builddir)/cpp/build/*.dylib )
LIBSDIR = $(abspath $(dir $(firstword $(LIBS))))

with LIBDIR not being defined anywhere we end up picking up host
libraries.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
utils/openzwave/Makefile

index 28125a4eeeb85c1e11ec05dc8c05031537d7932c..1445c1a6dd353785c61b23c0fbbab0e73aab2d0a 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=openzwave
 PKG_REV:=164
 PKG_VERSION:=1.4.$(PKG_REV)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://old.openzwave.com/downloads
@@ -55,6 +55,7 @@ endef
 
 MAKE_FLAGS += \
        LD="$(TARGET_CROSS)g++" \
+       LIBDIR="$(PKG_BUILD_DIR)" \
        PREFIX=$(CONFIGURE_PREFIX) \
        instlibdir=/usr/lib \
        pkgconfigdir=/usr/lib/pkgconfig \