Empty libgcc_s.

This library is built just so that something is present in
/usr/lib/libgcc_s.so.1.  This is needed for dynamically programs built
with gcc, which might reference that library at runtime (i.e. all pkgsrc
packages). The necessary symbols are in libc however, so when built on a
clang-only system, so an empty library is a working stopgap.
This commit is contained in:
Ben Gras 2014-07-17 12:32:35 +00:00 committed by Lionel Sambuc
parent ac74a77a40
commit 33c4e94990
6 changed files with 29 additions and 4 deletions

View file

@ -2024,10 +2024,11 @@
./usr/lib/libform.so.6 minix-sys
./usr/lib/libgcc.a minix-sys gcc=45
./usr/lib/libgcc_eh.a minix-sys gcccmds
./usr/lib/libgcc_s.a minix-sys gcccmds
./usr/lib/libgcc_s.so minix-sys gcccmds
./usr/lib/libgcc_s.so.1.0 minix-sys gcccmds
./usr/lib/libgcc_s.so.1 minix-sys gcccmds
./usr/lib/libgcc_s_pic.a minix-sys !libgcc
./usr/lib/libgcc_s.a minix-sys
./usr/lib/libgcc_s.so minix-sys
./usr/lib/libgcc_s.so.1.0 minix-sys
./usr/lib/libgcc_s.so.1 minix-sys
./usr/lib/libinputdriver.a minix-sys
./usr/lib/libinputdriver_pic.a minix-sys
./usr/lib/libl.a minix-sys

View file

@ -52,6 +52,10 @@ SUBDIR+= libasyn \
libusb \
libvtreefs
.if (${HAVE_LIBGCC} == "no")
SUBDIR+= libgcc_s_empty
.endif
.if (${MKLWIP} == "yes")
SUBDIR+= liblwip \
libnetsock

View file

@ -0,0 +1,13 @@
.include <bsd.own.mk>
USE_SHLIBDIR= yes
LIB= gcc_s
LDFLAGS+= -nodefaultlibs
LDFLAGS+= -Wl,--version-script=${.CURDIR}/libgcc_s_empty.map
SRCS+= empty.c
.include <bsd.lib.mk>
.include <bsd.subdir.mk>

View file

View file

@ -0,0 +1,5 @@
GCC_3.0 {
global:
*;
};

View file

@ -0,0 +1,2 @@
major=1
minor=0