From patchwork Thu Dec 3 20:25:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 552445 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 491C31402A9 for ; Fri, 4 Dec 2015 07:25:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=qWdMsnHd; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9043193994; Thu, 3 Dec 2015 20:25:54 +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 NzjSRS3hzoi4; Thu, 3 Dec 2015 20:25:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 826DC9397B; Thu, 3 Dec 2015 20:25:52 +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 CB9B91C161D for ; Thu, 3 Dec 2015 20:25:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C7C0A8B08F for ; Thu, 3 Dec 2015 20:25:50 +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 2Ht7_-MgbRHd for ; Thu, 3 Dec 2015 20:25:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 734248AF96 for ; Thu, 3 Dec 2015 20:25:49 +0000 (UTC) Received: by qgeb1 with SMTP id b1so71577146qge.1 for ; Thu, 03 Dec 2015 12:25:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=YU4ZBtqlPqJEqhHx3T15I6O+bvSIl5u4X7HXnXUQ6b0=; b=qWdMsnHd7OEeB+00jqIS+9PXoFxxy2iYlOP9QulUVxcTJPrNLEusZKxOTytNPjixhb NAjfYJ7Nf8wUS0ojFEsJ7CgXzY/nFhFZvfmj037TUPA8y848aqQH6fwmlZ1rfRyZZ/gT jkz1qkacylvEje1gHWmKlHKg3mkxGHxB/UQWNfzVg/8nNu/UslpmzVjJM7y7YKbS1oOb nkqzog9h9CQo9FS/zSrCHAf+/EymbfgKHLyZcAnMcrbFds/yZ3WmqhcVkbOS9wSe/nZ5 gIHWZs/mzaM8z0gJHhxruIg/kdbPhq77dDbUiTCro2y7OkEP4mU7Sg4YY1Oyny7VtM+u cNSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YU4ZBtqlPqJEqhHx3T15I6O+bvSIl5u4X7HXnXUQ6b0=; b=XgUCGMzWfQi9PjVbc6/1y5Ij1dmnyUi9BVBEg4zaZECdb3vqouPsLbrrZY4MqfUVi+ ZWReyDpBJfO2m687sHm90OaP7gk8CZqW+jxepKz1HfHrVvqvTk+Mtnc0QaQAjH7RjTuj aaG/XAEck6Qk+3JeOt0mcUai+TCxZD9Rjj7avaqGDOPTGVAGgIkBgSsGfq3YUmpWN/Yj lEFxGEDPeISWwB9m7iNhPwcPVZVUH7M/RFnwH2bGtOfo9iU7Vvb1lKYteEZUB4u+4Ir7 H+Rz4gpvKGPBROASJQGJ9bgUz/aDztBh9Ld4fc5agSmqfyb6IHUq5o/BNmgEJs47snQZ 5AbA== X-Gm-Message-State: ALoCoQk6r3lqMAjbea1Jyhgy0ppOz0JgMb+m/01MyJ07R1We3gD6ztAgxCKEBt/LEX6N8dV/HF7b X-Received: by 10.140.239.87 with SMTP id k84mr14795718qhc.87.1449174348449; Thu, 03 Dec 2015 12:25:48 -0800 (PST) Received: from localhost.localdomain ([177.141.170.120]) by smtp.gmail.com with ESMTPSA id r78sm330413qkl.42.2015.12.03.12.25.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 12:25:48 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Thu, 3 Dec 2015 18:25:28 -0200 Message-Id: <1449174328-8317-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] libsemanage: fix build error when linking with ustr 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" Disable ustr inline functions to avoid multiple definition of symbols error when linking with ustr. Fixes: http://autobuild.buildroot.net/results/e7012c7a734dbdd1c697cf63b6df6e834e8eafc7 http://autobuild.buildroot.net/results/0783a63e4694ffa8463ef5533b635c7e7c43dd42 http://autobuild.buildroot.net/results/40726abf3419a727c5762ef2791dbf53fa1736c0 http://autobuild.buildroot.net/results/a6a0c827c393a5fb41653d71d1ee50df283a32fb ... Signed-off-by: Sergio Prado --- package/libsemanage/libsemanage.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/libsemanage/libsemanage.mk b/package/libsemanage/libsemanage.mk index 197c14e4229a..ea9f4c9f67de 100644 --- a/package/libsemanage/libsemanage.mk +++ b/package/libsemanage/libsemanage.mk @@ -13,10 +13,15 @@ LIBSEMANAGE_INSTALL_STAGING = YES LIBSEMANAGE_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) +# disable ustr inline functions to avoid multiple definition of symbols +# error when linking +LIBSEMANAGE_CFLAGS = $(TARGET_CFLAGS) -DUSTR_CONF_COMPILE_USE_INLINE=0 + define LIBSEMANAGE_BUILD_CMDS # DESTDIR is needed during the compile to compute library and # header paths. - $(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all + $(MAKE) -C $(@D) $(LIBSEMANAGE_MAKE_OPTS) CFLAGS="$(LIBSEMANAGE_CFLAGS)" \ + DESTDIR=$(STAGING_DIR) all endef define LIBSEMANAGE_INSTALL_STAGING_CMDS