From patchwork Sat Jan 6 14:53:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 856382 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.136; helo=silver.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="EXXEkH59"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zDPgY0ymQz9s4s for ; Sun, 7 Jan 2018 01:54:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1D8B4273A1; Sat, 6 Jan 2018 14:53:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xxu2uPZyHhOI; Sat, 6 Jan 2018 14:53:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id BA39527379; Sat, 6 Jan 2018 14:53:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 15A761C1734 for ; Sat, 6 Jan 2018 14:53:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1203188BAF for ; Sat, 6 Jan 2018 14:53:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6f0MKchSNdvp for ; Sat, 6 Jan 2018 14:53:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 4DBFD88B9C for ; Sat, 6 Jan 2018 14:53:52 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id w196so7928124lff.5 for ; Sat, 06 Jan 2018 06:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=J1rMBQKBzDmi2lh8RwXvvVvjcqvYfejHx+aiqKP/Xco=; b=EXXEkH59pxsjdsB3GMH4iXvh4QYsaewmjJ3c3Taw+MxgQ3wc7ElRycu5qQ3f7iEZdq pIVXBU9tFb0aohkGETvenIHH7pFh1FTKAsJENbD3Ono9TizhxYKYgVtJ8xTxvrShO+L5 jbKbls0gXTAKxzony3NalD3/N/ZGILobrnh8+ocfIWnWRM1E71manPZeZwyeOVIbNWS8 pJuh8ncSIsElhIDqaV05aTEIDPDFh5kd9gja4S45pfz005m8VQokT91VMxVz1Em/6D1f fpf7JqTgrs9QV5aeuqNWX67isRsXIDn2VmrFFcxT4vKcke4EVU92vD8ZRIcGoi4FkTed 8EuA== 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=J1rMBQKBzDmi2lh8RwXvvVvjcqvYfejHx+aiqKP/Xco=; b=QwFW5SoUFifLuDHUcDPsGQgCriP4yigbKWYlHgQFBaf+3RggkI9xxs17x4I/UWdqRt JFedxA/4+WWlQGH4hDVsur177mQk/mjSZRTCBE7X3y+g0Tyla6QCIF6DSAR9mrywt16I Fu6iW/gCDcsIVLtd1c73R33awqSJB5l3rKfHgjtipzEi9riiRLa1FBnry302nhhTdRtS 4HN89vrpxHtuKKReMlPhMmGgw6aZslBx8uiBHGAi4yL26EGfnTUKqD5ChE6NCnCaObSS OHmpfyFjuqPG/B1y+UdrOumFk8GCmC3E5eCRmIAslsJ+Qmp06KjWfXYM2PKoLZDgK9lN Ac8A== X-Gm-Message-State: AKwxytfa0pWQ6G8bupSNKL3utU9PS1V+3CgJWv/bt/45fTDw13QoelwV i2q5S7qx0UrMdmt/ecJBzHePmRih X-Google-Smtp-Source: ACJfBouJ8h1RmjxfreeANPYdNBzmhDvLZ97auU3G/aOqIhWJWmuyiJtasXsug22d6yplFTmbUY5Pkg== X-Received: by 10.25.213.13 with SMTP id m13mr3092824lfg.4.1515250430467; Sat, 06 Jan 2018 06:53:50 -0800 (PST) Received: from localhost.localdomain (c-2ec264ee-74736162.cust.telenor.se. [46.194.100.238]) by smtp.gmail.com with ESMTPSA id e192sm1442694lfg.83.2018.01.06.06.53.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jan 2018 06:53:49 -0800 (PST) From: Marcus Folkesson To: buildroot@buildroot.org Date: Sat, 6 Jan 2018 15:53:49 +0100 Message-Id: <20180106145349.3225-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [Buildroot] [PATCH] libsepol: set PREFIX to generate proper .pc file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcus Folkesson , Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Marcus Folkesson Tested-by: Matt Weber --- package/libsepol/libsepol.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/libsepol/libsepol.mk b/package/libsepol/libsepol.mk index c54c3bfc42..d94955023c 100644 --- a/package/libsepol/libsepol.mk +++ b/package/libsepol/libsepol.mk @@ -19,10 +19,11 @@ ifeq ($(BR2_STATIC_LIBS),y) LIBSEPOL_MAKE_FLAGS += STATIC=1 endif +# DESTDIR is needed during the compile to compute library and header paths. define LIBSEPOL_BUILD_CMDS # DESTDIR is needed during the compile to compute library and # header paths. - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR) + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR) PREFIX=/usr endef define LIBSEPOL_INSTALL_STAGING_CMDS @@ -33,6 +34,7 @@ define LIBSEPOL_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(TARGET_DIR) endef +# DESTDIR is needed during the compile to compute library and header paths. HOST_LIBSEPOL_MAKE_ENV = \ $(HOST_MAKE_ENV) \ DESTDIR=$(HOST_DIR) \