* [gentoo-commits] proj/sandbox:stable-2.x commit in: libsbutil/, libsandbox/
@ 2025-01-08 2:12 Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master commit in: libsandbox/, libsbutil/ Mike Gilbert
0 siblings, 1 reply; 2+ messages in thread
From: Mike Gilbert @ 2025-01-08 2:12 UTC (permalink / raw
To: gentoo-commits
commit: d9a4a0c97f4840e3c6b84fa6302ed511dd73705b
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 8 02:11:31 2025 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> 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 <floppym <AT> 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)
{
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/sandbox:master commit in: libsandbox/, libsbutil/
2025-01-08 2:12 [gentoo-commits] proj/sandbox:stable-2.x commit in: libsbutil/, libsandbox/ Mike Gilbert
@ 2025-01-14 4:38 ` Mike Gilbert
0 siblings, 0 replies; 2+ messages in thread
From: Mike Gilbert @ 2025-01-14 4:38 UTC (permalink / raw
To: gentoo-commits
commit: d9a4a0c97f4840e3c6b84fa6302ed511dd73705b
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 8 02:11:31 2025 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> 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 <floppym <AT> 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)
{
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-14 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08 2:12 [gentoo-commits] proj/sandbox:stable-2.x commit in: libsbutil/, libsandbox/ Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master commit in: libsandbox/, libsbutil/ Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox