From f46a8b53761fa4f8c87500a128110564af757d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 5 Jul 2004 18:45:50 +0000 Subject: [PATCH] Now includes libgcc.a and exports its symbols (needed for BeOS compatibility). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8313 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/Jamfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/kernel/Jamfile b/src/kernel/Jamfile index 959b6214b2..94459ddd6b 100644 --- a/src/kernel/Jamfile +++ b/src/kernel/Jamfile @@ -129,9 +129,14 @@ KernelLd libglue.o : # libglue.o is used for dynamic libraries no_gcc ; +UnarchiveObjects $(LIBGCC_OBJECTS) : $(LIBGCC_DIR)/libgcc.a ; + # we need to link against libgcc.a objects and make + # it available to other applications as in BeOS + KernelLd libroot.so : libglue.o + $(LIBGCC_OBJECTS) <$(SOURCE_GRIST)!libroot>libroot_init.o os_main.o @@ -152,17 +157,11 @@ KernelLd libroot.so : posix_termios.o posix_time.o posix_unistd.o - : - $(SUBDIR)/ldscripts/$(OBOS_ARCH)/library.ld - : - -shared -soname libroot.so -Bdynamic -export-dynamic - : - # no_gcc - # for now link against libgcc.a to allow more BeOS executables to be run. - # Needs a definitive decision - most probably we will have to link it statically - # against libroot.so, too, like BeOS does it - : - beos/system/lib/libroot.so + + : $(SUBDIR)/ldscripts/$(OBOS_ARCH)/library.ld + : -shared -soname libroot.so -Bdynamic -export-dynamic + : no_gcc + : beos/system/lib/libroot.so ; KernelLd libglue2.o : # libglue2.o is used for executables