From patchwork Sun Jun 10 18:11:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 927396 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@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; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GNiq8OTZ"; 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 413kjf1D1Pz9s2t for ; Mon, 11 Jun 2018 04:11:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A54718259B; Sun, 10 Jun 2018 18:11:15 +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 yfPyOC+fFC8c; Sun, 10 Jun 2018 18:11:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 12F55825C7; Sun, 10 Jun 2018 18:11:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4045D1C2172 for ; Sun, 10 Jun 2018 18:11:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3D87C22229 for ; Sun, 10 Jun 2018 18:11:14 +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 rndt9plvy6Yb for ; Sun, 10 Jun 2018 18:11:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by silver.osuosl.org (Postfix) with ESMTPS id 66C2022143 for ; Sun, 10 Jun 2018 18:11:13 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id d8-v6so18061924wro.4 for ; Sun, 10 Jun 2018 11:11:13 -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=w3175kLGiYzrd5+9PzmbVehJWmL14RommkT4YHP2VBY=; b=GNiq8OTZAgKeZFofZ8O8d2tYsUu3azZk4xx7yQ3AP/X7PqYLN+Z6Fx7baR1HtWb2UZ K66Pv4A5Sm21SWZFtN58CGMTdU3qOXpp7M8psE9jOKnJ1PDlMTysEJMOmSRNMlJxUqxo 7USVuWO6O2tXUwRTOOXQzK+yT4NhHkGCSs6PAaJYgXo1YOatrDTA6+tnn1ilxl/meuf+ T9ArMqHzROkpdVMARXG4x+Z+F+RM35hJqDoysjmHef0GTfCf8ZhyZXLlJbDPY4Aqr52q Hzh627gb1LN3GNWsDeS6LKxgoEhu7vYzxJgrPHkNHcBFuRCJQCiX0EvuNJvLAgsxy9P3 7jlw== 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=w3175kLGiYzrd5+9PzmbVehJWmL14RommkT4YHP2VBY=; b=RSUwNADy4BDlax/uaFNb2oxFX8r1H2JDFBJy1oDtFAAn4l//5+ffBAU1UaOrCPYIhk r+kraznycH5vq36KyWiInjxczacPZ2jI0IkGGky1OxHJGZwwinHZF+aokY/5CuOyNfTw +dW5UVTuxLw/026js/t5m4FIg3FEphFqNkAPLo08lp+YtxZhg+Ud0kvhwJhrCKiIVXmX Z971Xv6GhMaCpkQbQVsTaflBcSXhlpWwLWLwsGesYDx19Nh1Mfnt4Elxk0s4tKML0E1G TpqsG4tOJFY7K4XOqte3QlwtnVuao0CuIUUSTloqsJt1dw+O8Kn8jZ8HIWJCMBBVN4FO 3iCA== X-Gm-Message-State: APt69E0mU1XW8K0/AQcXZbjraAj5bh6OQPNRxZkWqOYqTm2jHL9HUuNz kWKvv66E92Za0DTVs/FMXlGvcg== X-Google-Smtp-Source: ADUXVKKKv09Ryl3KWTUQamzO71leraV2dNAUdhS0OyTd5W6ZQWX+KkNDs66E8hoo6Q0OfAj+tBNt7A== X-Received: by 2002:adf:edc6:: with SMTP id v6-v6mr9137374wro.264.1528654271700; Sun, 10 Jun 2018 11:11:11 -0700 (PDT) Received: from fabrice-VirtualBox.home (ARennes-656-1-414-230.w92-135.abo.wanadoo.fr. [92.135.190.230]) by smtp.gmail.com with ESMTPSA id o13-v6sm5018455wmc.33.2018.06.10.11.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 11:11:10 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 10 Jun 2018 20:11:04 +0200 Message-Id: <20180610181104.19619-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH v2, 1/1] pixiewps: fix static linking with uclibc-ng 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: Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes following linking error with uClibc-ng: /home/peko/autobuild/instance-0/output/host/lib/gcc/powerpc-buildroot-linux-uclibc/7.3.0/libgcc.a(unwind-dw2-fde-dip.o): In function `_Unwind_Find_FDE': /home/peko/autobuild/instance-0/output/build/host-gcc-final-7.3.0/build/powerpc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469: undefined reference to `dl_iterate_phdr' collect2: error: ld returned 1 exit status Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc exist, when static linking is used. It can be resolved by the compiler when -static is correctly passed in the linking step. So use TARGET_CONFIGURE_OPTS to pass CC as well as LDFLAGS to make Fixes: - http://autobuild.buildroot.net/results/d9f0311538c8db1196839e36af3f6ef4e403be2b Signed-off-by: Fabrice Fontaine --- Changes v1 -> v2 (after review of Thomas Petazzoni): - Remove PIXIEWPS_MAKE_OPTS to use directly TARGET_CONFIGURE_OPTS package/pixiewps/pixiewps.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pixiewps/pixiewps.mk b/package/pixiewps/pixiewps.mk index 95a253ab83..1f84bbeb34 100644 --- a/package/pixiewps/pixiewps.mk +++ b/package/pixiewps/pixiewps.mk @@ -10,7 +10,7 @@ PIXIEWPS_LICENSE = GPL-3.0+ PIXIEWPS_LICENSE_FILES = LICENSE.md define PIXIEWPS_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) -C $(@D) + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) endef define PIXIEWPS_INSTALL_TARGET_CMDS