[Buildroot] [PATCH] host-lzo: default liblzo2.a install to host/lib

Matt Weber matthew.weber at rockwellcollins.com
Tue Oct 3 13:49:18 UTC 2017


Discovered the issue on a RHEL7.4 machine where
the cmake build dynamically selected HOST_DIR/lib64
as the installation path for the library.

Fixes failures like the following:
host-mtd
http://autobuild.buildroot.net/results/d31/d31581d2e60f35cf70312683df99c768e2ea8516/
host-squashfs
http://autobuild.buildroot.net/results/d9c/d9c95231ac774ed71580754a15ebb3b121764310/

Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
---
 package/lzo/lzo.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk
index 27ca459..0cafba2 100644
--- a/package/lzo/lzo.mk
+++ b/package/lzo/lzo.mk
@@ -11,6 +11,9 @@ LZO_LICENSE_FILES = COPYING
 LZO_INSTALL_STAGING = YES
 LZO_SUPPORTS_IN_SOURCE_BUILD = NO
 
+# Prevent dynamically using lib64 as install libdir
+HOST_LZO_CONF_OPTS += -DCMAKE_INSTALL_LIBDIR=lib
+
 ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
 LZO_CONF_OPTS += -DENABLE_SHARED=ON
 else
-- 
1.8.3.1



More information about the buildroot mailing list