From patchwork Sat Jun 13 16:20:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1308724 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=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.a=rsa-sha256 header.s=mail header.b=ABNzAAuH; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49kjW71dMHz9sRK for ; Sun, 14 Jun 2020 02:20:35 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AFA5A8880F; Sat, 13 Jun 2020 16:20:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4PniPUUJf7Z9; Sat, 13 Jun 2020 16:20:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A6662886D8; Sat, 13 Jun 2020 16:20:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 55ECF1BF5B5 for ; Sat, 13 Jun 2020 16:20:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 528B1886D1 for ; Sat, 13 Jun 2020 16:20:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WRXS6GGnBKqc for ; Sat, 13 Jun 2020 16:20:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from crapouillou.net (outils.crapouillou.net [89.234.176.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id EF250886D8 for ; Sat, 13 Jun 2020 16:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1592065223; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=xbAAwkiOlt8YgCGbOK1OPnOrGXfdxDdHHBqYB8zuOz8=; b=ABNzAAuH/+Sot4bKIbNOFAiZUByvYRUImsBlx/xQCQdJCH1sa51vgm9PRT/1mby9aH9qc0 wbGF57dGmgOPVb9SVXxoukkoaR8UhoVjW3b2v77YS6HeMXITyq8WDh8/uRab0f7n2EMyj7 VZDceA9yl3Hm6dOsdyxLarfCQdl/+hs= From: Paul Cercueil To: buildroot@busybox.net Date: Sat, 13 Jun 2020 18:20:01 +0200 Message-Id: <20200613162001.154280-1-paul@crapouillou.net> MIME-Version: 1.0 Subject: [Buildroot] [PATCH] uclibc: add simlinks from libdl/libm/libpthread/librt 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: Paul Cercueil Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" All the symbols that were previously present in libdl.so.0, libm.so.0, libpthread.so.0 and librt.so.0 are now all packed within uClibc. In order to keep binary compatibility with old executables, which were dynamically linked with one of the libraries above, add symbolic links to the uClibc shared library. Signed-off-by: Paul Cercueil --- package/uclibc/uclibc.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index 3ba4589672..73664d5b0b 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -424,6 +424,10 @@ define UCLIBC_INSTALL_TARGET_CMDS RUNTIME_PREFIX=/ \ install_runtime $(UCLIBC_INSTALL_UTILS_TARGET) + ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libdl.so.0 + ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libm.so.0 + ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/libpthread.so.0 + ln -sf libuClibc-$(UCLIBC_VERSION).so $(TARGET_DIR)/lib/librt.so.0 endef # STATIC has no ld* tools, only getconf