From patchwork Wed Sep 13 17:37:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 813549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JGDKO2M4"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xsplj07Fhz9sNw for ; Thu, 14 Sep 2017 03:37:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8B43489FA2; Wed, 13 Sep 2017 17:37:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j5ZTXoHcldga; Wed, 13 Sep 2017 17:37:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CED6789F70; Wed, 13 Sep 2017 17:37:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B20711C274B for ; Wed, 13 Sep 2017 17:37:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ACE8489F70 for ; Wed, 13 Sep 2017 17:37:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OY+P6A2zFmmo for ; Wed, 13 Sep 2017 17:37:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4B07989F14 for ; Wed, 13 Sep 2017 17:37:43 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id i130so425662pgc.0 for ; Wed, 13 Sep 2017 10:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cOr9wP+pRJTzZ9wp0DGIqaOhblXZjPLroY6y8rrvoms=; b=JGDKO2M47WPbnqli7XpLLdmEQeRIsRCJkJOdB1ACkHdJ/MkkHx0gDlWYAt1n+xxgck EQwDt5GwoLdvvd1pAfnbzE1VHl6ta30s0kuZYu9YdEGyiOxMj1AuaWwoOaJ9qgwtKIA0 lC5p9EjdPAy8ZFYIJ9famWiMLvUVVVpBrxUkgqNc8Rbo+5SJ29um7XnbRQbBjecXtHIz C1Qa7a0ODWgNUp7kxb6BYuTiaOo5vm8wAm3YlTKuak89ceKK19ouY6UCZH+ScGKnnYZs 7beskKgqtEcFHkQl2dbdtvNbeVpqxTEpz8dy+kaSq27GZmn9x+zyJK9PkJlSRkgzhgzH 3xYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cOr9wP+pRJTzZ9wp0DGIqaOhblXZjPLroY6y8rrvoms=; b=AyquODjAH1No6N7j4x8Mo+x3N6coVVnzPgxZ0WSPknwffDvneDtJYDy2mBp5s3Xc8/ IB2I7mfSY4rh0HPLO85nC1zu4m9o/NdTsbc1ZTRIQ6iwMaYbLfmyQICSjCuSMUc9Bujw Pm0qIJWADRfiL+aG2JI2jx7cG4hZFKHcFeRV6k0OF3Je+JLcwDv+PdCJBvJfrUIXUEkq UnHn8medocZ/eofEwPkACPtDVpmzqSRVC5WKhHKGdXpzUvvnaWGrO+tD/1uM5vdfWfVm 2pL8RA5/vblUObPo6r1CQUXs2nK87Xp2qn9GPP6HR6im+1skWe0KomBAoVMHKpd7srO7 aYOA== X-Gm-Message-State: AHPjjUibqMRPFTLFMAWOe26hsUZGFCBtcneOTQbzMiH2I/qlDX4B0PXq zEpRqM4fQbE54S7mdGk= X-Google-Smtp-Source: ADKCNb6BM9a/8FqdKM/XcBl3OEt3U36tzNYbJwULe/+Erhz2ynIQxBoR9v07wpgN0x8sVxul5Jgs8Q== X-Received: by 10.84.244.6 with SMTP id g6mr21851307pll.223.1505324262260; Wed, 13 Sep 2017 10:37:42 -0700 (PDT) Received: from squirtle.westlake.spaceflightindustries.com ([173.226.206.194]) by smtp.gmail.com with ESMTPSA id l15sm23787517pfk.44.2017.09.13.10.37.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Sep 2017 10:37:41 -0700 (PDT) From: Andrey Smirnov To: buildroot@buildroot.org Date: Wed, 13 Sep 2017 10:37:24 -0700 Message-Id: <20170913173724.6157-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.13.5 Cc: Andrey Smirnov Subject: [Buildroot] [PATCH] package/lzo: Set CMAKE_INSTALL_LIBDIR for host variant explicitly X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Building host-lzo on 64-bit Fedora 26 ends up with library files installed into $(HOST_DIR)/lib64 instead of $(HOST_DIR)/lib where other packages (at least host-mtd) depending on it would look for it (resulting in build failures). Fix that by specifying the directory to be lib/ explicitly. Signed-off-by: Andrey Smirnov Acked-by: Samuel Martin --- I suspect this might not be the best solution for this problem, but it is a good starting point to discuss what might be and that's why I submitted this patch anyway. Thanks, Andrey Smirnov package/lzo/lzo.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk index 27ca459acf..4eccbdc93a 100644 --- a/package/lzo/lzo.mk +++ b/package/lzo/lzo.mk @@ -23,5 +23,11 @@ else LZO_CONF_OPTS += -DENABLE_STATIC=OFF endif +# +# Make sure that libraries are installed in lib/ and not lib64/ so +# that other packages can discover it +# +HOST_LZO_CONF_OPTS += -DCMAKE_INSTALL_LIBDIR=lib + $(eval $(cmake-package)) $(eval $(host-cmake-package))