From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2665C15813A for ; Tue, 14 Jan 2025 04:38:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3248EE0829; Tue, 14 Jan 2025 04:38:27 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0FADDE0824 for ; Tue, 14 Jan 2025 04:38:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D947A340906 for ; Tue, 14 Jan 2025 04:38:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3576C2160 for ; Tue, 14 Jan 2025 04:38:22 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1736302291.d9a4a0c97f4840e3c6b84fa6302ed511dd73705b.floppym@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsandbox/, libsbutil/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsandbox/local.mk libsbutil/sb_backtrace.c X-VCS-Directories: libsbutil/ libsandbox/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: d9a4a0c97f4840e3c6b84fa6302ed511dd73705b X-VCS-Branch: master Date: Tue, 14 Jan 2025 04:38:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f19e93b0-96c3-4908-be05-8e5992395d44 X-Archives-Hash: f964c7cb9e6898013cfaa0280e0f1ed3 Message-ID: <20250114043822.YQXGM3YyKDUvxpoYHvaRH3UTcxoBWFrVV5rjc2In3ao@z> commit: d9a4a0c97f4840e3c6b84fa6302ed511dd73705b Author: Mike Gilbert gentoo org> AuthorDate: Wed Jan 8 02:11:31 2025 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Wed Jan 8 02:11:31 2025 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=d9a4a0c9 libsandbox: simplify reference to libsbutil Signed-off-by: Mike Gilbert gentoo.org> libsandbox/local.mk | 9 +-------- libsbutil/sb_backtrace.c | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/libsandbox/local.mk b/libsandbox/local.mk index d2fb1d1..b3ccd39 100644 --- a/libsandbox/local.mk +++ b/libsandbox/local.mk @@ -9,14 +9,7 @@ lib_LTLIBRARIES += %D%/libsandbox.la -I$(top_srcdir)/libsbutil/include %C%_libsandbox_la_CFLAGS = $(CFLAG_EXCEPTIONS) -# Could use the following to libsandbox_la_LIBADD, but then libtool links it -# with --whole-archive, and libsandbox.so increase with a few KB in size: -# libsbutil/libsbutil.la -libsbutil/.libs/libsbutil.a: libsbutil/libsbutil.la -%C%_libsandbox_la_LIBSBLIB = libsbutil/.libs/libsbutil.a -%C%_libsandbox_la_LIBADD = \ - $(%C%_libsandbox_la_LIBSBLIB) \ - $(LIBDL) +%C%_libsandbox_la_LIBADD = libsbutil/libsbutil.la $(LIBDL) # Do not add -nostdlib or -nostartfiles, as then our constructor # and destructor will not be executed ... %C%_libsandbox_la_LDFLAGS = \ diff --git a/libsbutil/sb_backtrace.c b/libsbutil/sb_backtrace.c index e3d1ed7..f06b781 100644 --- a/libsbutil/sb_backtrace.c +++ b/libsbutil/sb_backtrace.c @@ -10,6 +10,7 @@ #include "headers.h" #include "sbutil.h" +__attribute__((weak)) void __sb_dump_backtrace(void) { }