From patchwork Fri May 14 21:26:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1478697 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::137; helo=smtp4.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.a=rsa-sha256 header.s=20161025 header.b=IUO1TEoG; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FhhRH11Tgz9sW8 for ; Sat, 15 May 2021 07:26:18 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2BEEF4187C; Fri, 14 May 2021 21:26:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 67zYw1wJAxCd; Fri, 14 May 2021 21:26:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 3FB1F41857; Fri, 14 May 2021 21:26:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6E2C51BF3AA for ; Fri, 14 May 2021 21:26:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5D8AA84682 for ; Fri, 14 May 2021 21:26:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mkDp0RgpcWNO for ; Fri, 14 May 2021 21:26:11 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by smtp1.osuosl.org (Postfix) with ESMTPS id 55A6184677 for ; Fri, 14 May 2021 21:26:11 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id a10-20020a05600c068ab029014dcda1971aso2029125wmn.3 for ; Fri, 14 May 2021 14:26:11 -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:mime-version :content-transfer-encoding; bh=kBsRztZ0S/PcbY29HXbWM1Eoaw5m9TwToSGHrXCZoSU=; b=IUO1TEoGdYry4Em7EvGpS0jIpMgK/gM2Xi1/9G9jRqnZh4ljSfDrTbeDTBetg4ePMg 5gtlYbkowVU07oioCd1Pwh3CKTn2+PjVdrnSoIxqBHJXxURCHFGAFihSDnsDMeBvnFJJ /SzL4pQh1kmpzSm0jVcK9zjHQW3tD961YiZtzhtS+LHrAbQUcHhqaPnxd8RkzXo1vdyY y3n6HstHBImk0CWSpWwwif8mwDKACvatVORQdUntNL71G8AF7fO4VGHGT2q/bPqV1rzL YdVwHf/1oV6+wsbSPqPPgMif7Z5dbExxDF8PXCUR/b6eOSry3S9dBAarBwCno+BwWF+s dEmA== 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:mime-version :content-transfer-encoding; bh=kBsRztZ0S/PcbY29HXbWM1Eoaw5m9TwToSGHrXCZoSU=; b=XkU5WbEmaaQHrKTFMZUEVenk4KCzTbyKctKPuq24c8mVlOYdnfrv2gaFeEvcDOh74t W4SuBAHiB1wMwqx1tT572sKQWD/FfZs+lWmbkCwN+3hZgr/xcgyKnjBKXAhXNlqoASjT LXaBP83tHr7n5cB8+8JIKEOn6WRmnJMyKrEOuxkkFDhmQvwq4PiMIh/n/IQ9iwJV8sRn KB9S83YMkAw9FwCVww9cdW0QyQOhx9LDn7t2VZRhXOTDaTcfqa4BdtP2UgrbwEtg61Vc 1n77dpxUGC9CZ34QvBdIygBLUkYXGWO/fmL6I0tjWigIag55NpX1BGpzzHEk2RQbQBuo VYOQ== X-Gm-Message-State: AOAM53268SfKVwS3xHyvsPhLOkP36+0L8OdMSdMM4HDHFTtJf0mm88Dv HCf2zErNmnIfucBvUOoYj+PgEBMY06U= X-Google-Smtp-Source: ABdhPJwTlfP/8UNSE61vdFl3fZr6dgEF7Saj9/DANVpwjzLtXOMpySu2zuX9J1oRbK+ls70WN2y1JQ== X-Received: by 2002:a05:600c:248:: with SMTP id 8mr14616048wmj.49.1621027569043; Fri, 14 May 2021 14:26:09 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1383-171.w86-229.abo.wanadoo.fr. [86.229.230.171]) by smtp.gmail.com with ESMTPSA id u5sm7618130wrt.38.2021.05.14.14.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 14:26:08 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 14 May 2021 23:26:02 +0200 Message-Id: <20210514212602.2274195-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/dmalloc: unconditionally set -fPIC X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Unconditionally set -fPIC to avoid the following build failure which is raised since commit 19ec872f169a851b48ba04d22432b7c0939847d4: /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/or1k-linux-ld -shared --whole-archive -soname libdmallocxx.so -o libdmallocxx.so.t libdmallocxx.a /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/or1k-linux-ld: libdmallocxx.a(arg_check.o): non-pic relocation against symbol _dmalloc_flags /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/or1k-linux-ld: libdmallocxx.a(arg_check.o): non-pic relocation against symbol _dmalloc_flags /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/or1k-linux-ld: libdmallocxx.a(arg_check.o): pc-relative relocation against dynamic symbol dmalloc_verify_pnt Fixes: - http://autobuild.buildroot.org/results/62c9c6aebca60649bd6f635125507bf10d63fc05 Signed-off-by: Fabrice Fontaine --- package/dmalloc/dmalloc.mk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package/dmalloc/dmalloc.mk b/package/dmalloc/dmalloc.mk index 638fe0fcda..8300cc7f19 100644 --- a/package/dmalloc/dmalloc.mk +++ b/package/dmalloc/dmalloc.mk @@ -14,11 +14,7 @@ DMALLOC_LICENSE_FILES = dmalloc.h.1 DMALLOC_INSTALL_STAGING = YES DMALLOC_CONF_OPTS = --enable-shlib -DMALLOC_CFLAGS = $(TARGET_CFLAGS) - -ifeq ($(BR2_STATIC_LIBS),) -DMALLOC_CFLAGS += -fPIC -endif +DMALLOC_CFLAGS = $(TARGET_CFLAGS) -fPIC ifeq ($(BR2_INSTALL_LIBSTDCPP),y) DMALLOC_CONF_OPTS += --enable-cxx