Message ID | 20210102235625.264305-1-rosenp@gmail.com |
---|---|
State | Accepted |
Delegated to: | Paul Spooren |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=cTOU7pFn; 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=L9niZaRD; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4D7f7h3PDCz9sVn for <incoming@patchwork.ozlabs.org>; Sun, 3 Jan 2021 11:01:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=UnVrtH8a7wBxKK5HHnGCfw2NW2C9PFt+RWh/TIzH39c=; b=cTOU7pFncE3NDI6aXh65mXZ5L4 bhk9ks2yxQpihRehHbhzjhvRCr00B+Ws2aqyb7j0+a8UR3RbwuAYaGQB5hGW7UwuXxUOLGKVS9xh8 jeoIQ6wAFSU/iMX1P1FCl3xsq8cKfOLcJXcHxb7054s5sT/B3BarvhOduKUcapPdRkuUV/1wP+dot bptYP9nAl3PVoTDPWO2OGimLyEJwtLPMJl16Z/WEFaW3xXZ61Si+lKOVQRepUUcqO79s5Y+km46FT i5JqehVR/ZlBPJ0ixJbERohcR2sL9QnWggoJHTA8O0IsU7Zi2fcEm0hv9+De3Vk8EwzSXF3vxXBqF qNBfP3GQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kvqn3-0005XB-4u; Sat, 02 Jan 2021 23:58:34 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kvql4-0004z5-Bw for openwrt-devel@lists.openwrt.org; Sat, 02 Jan 2021 23:56:33 +0000 Received: by mail-pf1-x434.google.com with SMTP id t22so14138203pfl.3 for <openwrt-devel@lists.openwrt.org>; Sat, 02 Jan 2021 15:56:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=sLdCi3f7c0K3skQiXJZ3fixPU/F5wzhU7unqo0K3zGI=; b=L9niZaRDMSxXBx8eHK48/qPjRn+fZ/CULCnPAt/4ajeckRVoantkzbd2t+/VGUCmWk BPsHq5ub3BjqU33wguO2/q6HHHDO3blTgYV7/1rFVETEHPJ4rdPAB6gG9gnJGNm7x0Qf adlAsAJvsuR2vOaA6FPZZjtEdw0nlFjkkTTUIEQDAQfFX+qSi1XkSdF+SWr8gXWHihxk 1iMQvLWhDyy5QMfydJy6LaG6auyqp/Ze0lglFFEiIWKCUwv1/ag9OzEa656h7TphTkYp GxDvy+G9wFYlr6vCpVsNRcTZNoup9Er+vrHUojRx0TM/RcDu2fLa32SKrlIoayMGSgLY I0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=sLdCi3f7c0K3skQiXJZ3fixPU/F5wzhU7unqo0K3zGI=; b=M6ACD5szCZRW5oQ+MN4VsqWMcQErAjTB1YEmqYZZrQm/hSqXEoBaCVF8Y9xaePDCKr WmMeHFpCkUQP/0woxkvHcAd6HmmY6oAD3L4csGTt79bpbBGO+twSNoG/zyDeBSJNHVsP 4zxTARPy3eiwWLYbl7EEqCGB+dzRelR6h9cZYysU2KDUUwo/EwJo40CTidqVnCvazGGK wDJz0PC8qEm87NcxOKRohqlAot6zDkHCA9FiuSVmkOaGXVAHsPh14xbGWJS3f7IL7u8Z 3QCqh5qPY3mLWc084ihY1GQGO0d47JFcLc8f+AWnhDhNAE7ykgSNofCVGEIwM4qUC3KE 31qA== X-Gm-Message-State: AOAM5330KNQ2CcDlK0c9/iB8kjghhqhpB/JOLXYzmqSAuGzkyNczKIHt +ib09JJEwPYBCT+4PlZYaBNFcl9CLjGakA== X-Google-Smtp-Source: ABdhPJyOR20C6t4UjN62lPGbO/0U8xU2rxBADz7Zf+PDXa2/cH33OkotAH3U8fh77A7pcUlYGewQAA== X-Received: by 2002:aa7:95a4:0:b029:19e:abd2:4a88 with SMTP id a4-20020aa795a40000b029019eabd24a88mr55524798pfk.2.1609631787299; Sat, 02 Jan 2021 15:56:27 -0800 (PST) Received: from mangix-trapnet.lan ([2001:470:1f05:79e::a89]) by smtp.gmail.com with ESMTPSA id x143sm58608719pgx.66.2021.01.02.15.56.26 for <openwrt-devel@lists.openwrt.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Jan 2021 15:56:26 -0800 (PST) From: Rosen Penev <rosenp@gmail.com> To: openwrt-devel@lists.openwrt.org Subject: [PATCH] lua: add -ldl for glibc builds Date: Sat, 2 Jan 2021 15:56:25 -0800 Message-Id: <20210102235625.264305-1-rosenp@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210102_185630_591895_D0039875 X-CRM114-Status: GOOD ( 12.48 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:434 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rosenp[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
lua: add -ldl for glibc builds
|
expand
|
diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile index 3cdb2bcdb6..a54ef7d25a 100644 --- a/package/utils/lua/Makefile +++ b/package/utils/lua/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lua PKG_VERSION:=5.1.5 -PKG_RELEASE:=7 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ @@ -99,7 +99,7 @@ define Build/Compile RANLIB="$(TARGET_CROSS)ranlib" \ INSTALL_ROOT=/usr \ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \ - MYLDFLAGS="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_GLIBC),-lm)" \ + MYLDFLAGS="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_GLIBC),-lm -ldl)" \ PKG_VERSION=$(PKG_VERSION) \ linux rm -rf $(PKG_INSTALL_DIR)
For glibc, lua needs an explicit link to libdl as glibc has it separate Fixes the following error in at least collectd: ld: usr/lib/liblua.so: undefined reference to `dlopen' ld: usr/lib/liblua.so: undefined reference to `dlclose' ld: usr/lib/liblua.so: undefined reference to `dlerror' ld: usr/lib/liblua.so: undefined reference to `dlsym' Signed-off-by: Rosen Penev <rosenp@gmail.com> --- package/utils/lua/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)