From patchwork Sat Jan 6 14:52: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: 856380 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.137; helo=fraxinus.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="jC4D45Kk"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zDPfM5nWlz9s4s for ; Sun, 7 Jan 2018 01:52:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0C3E1891B1; Sat, 6 Jan 2018 14:52:56 +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 NkXn14Y-jHQb; Sat, 6 Jan 2018 14:52:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 34EDA88BAF; Sat, 6 Jan 2018 14:52:54 +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 D6C611C21E2 for ; Sat, 6 Jan 2018 14:52:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D227C8A29F for ; Sat, 6 Jan 2018 14:52:53 +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 5xYW74vsuEUx for ; Sat, 6 Jan 2018 14:52:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0D6358A28F for ; Sat, 6 Jan 2018 14:52:53 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id o76so1477639lfi.10 for ; Sat, 06 Jan 2018 06:52: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=87ltx+BwTvk9MbQVrSz1ZykLYIw2HVvVTb0gCiCPnNE=; b=jC4D45KkzdvHxzKao10gwRPab3jfmpSC+ZlKNpk0570FQ5ADtYJbRlTYfNlthC03RI lf7OEynkfHHwOnC7uGWiRATYs26owTDaPe3ctzprSxMe61Gv4xCyRMejS1sTqcKSACX5 gpl5HDSywRvo04sQ9+/fwvf56lilNAI68MDEHfSYyiueCNRojQZ/O0vsHz4mY9IcSeAc rBwL9JjrUBdHxKu5baUB4SU9E+LI6dwJhux+KGMKkdtxvrCLSsEs0/Wdnguk3iyhprTI 1RB6CiczQGR4ex6Q+C2wtwMon79z+ZPx6nOeq62PBS1yUNQdJ1gqxUpL70qI4m2arCFS JBUg== 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=87ltx+BwTvk9MbQVrSz1ZykLYIw2HVvVTb0gCiCPnNE=; b=Gx7u+77vDQr+r48aZYBGf7qsWCrYn+Jb6DyNECpO2/R7JiaR8KO9vG1Gd6p3PoUqjq QHXYTEXyO/aKvhjIqG5cRvRVfYZL7+5hLecQ+98S40oYXcgvzrnQQwfl0MdZRZQcxi+h xSAt8qxkap2XWbR3YK9Nletl+lExJLoEOdm6O51D39iLQkaypMH3eGcW2/uXrfYCOEys 525KIpJvarh2SHLmmo+0mDbmu446KH6pNhI4WM7KFDMMtkNkF9+x9Xl+7RU3DxqdoZCn dWl2zHfpGjhga95TSBjtAOzIWOGF+ZWauUk2qkJodJRlP+3gVa9zIJvFrnftzYoQSzdq 0rOw== X-Gm-Message-State: AKGB3mL7Y5ipDbCyXuKvXcNU46YkufOsqMq1IW8mybC3gFpdBWnp2Ghj 6K+PyJm1tax2Zk7BZyiP9uWqEhW7 X-Google-Smtp-Source: ACJfBotFErECrD6N1FmVS3+2UGJRUvjFljOSiwGe4LuCmTPejWw5wNO7VIANnAk/fmLCvEBer76tsA== X-Received: by 10.46.25.143 with SMTP id 15mr3676867ljz.3.1515250371080; Sat, 06 Jan 2018 06:52:51 -0800 (PST) Received: from localhost.localdomain (c-2ec264ee-74736162.cust.telenor.se. [46.194.100.238]) by smtp.gmail.com with ESMTPSA id w3sm1452994lfd.74.2018.01.06.06.52.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jan 2018 06:52:50 -0800 (PST) From: Marcus Folkesson To: buildroot@buildroot.org Date: Sat, 6 Jan 2018 15:52:49 +0100 Message-Id: <20180106145249.3090-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.15.1 Subject: [Buildroot] [PATCH] libselinux: 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/libselinux/libselinux.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk index 8ac8000de5..bf33da7f75 100644 --- a/package/libselinux/libselinux.mk +++ b/package/libselinux/libselinux.mk @@ -43,17 +43,19 @@ LIBSELINUX_MAKE_INSTALL_TARGETS += install-pywrap # dependencies are broken and result in file truncation errors at link # time if the Python bindings are built through the same make # invocation as the rest of the library. +# DESTDIR is needed during the compile to compute library and header paths. define LIBSELINUX_BUILD_PYTHON_BINDINGS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) swigify pywrap endef endif # python || python3 +# DESTDIR is needed during the compile to compute library and header paths. define LIBSELINUX_BUILD_CMDS # DESTDIR is needed during the compile to compute library and # header paths. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ - $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all + $(LIBSELINUX_MAKE_OPTS) DESTDIR=$(STAGING_DIR) PREFIX=/usr all $(LIBSELINUX_BUILD_PYTHON_BINDINGS) endef