]> Zhao Yanbai Git Server - minix.git/commitdiff
Empty libgcc_s.
authorBen Gras <ben@minix3.org>
Thu, 17 Jul 2014 12:32:35 +0000 (12:32 +0000)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:06:03 +0000 (17:06 +0200)
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.

distrib/sets/lists/minix/mi
lib/Makefile
lib/libgcc_s_empty/Makefile [new file with mode: 0644]
lib/libgcc_s_empty/empty.c [new file with mode: 0644]
lib/libgcc_s_empty/libgcc_s_empty.map [new file with mode: 0644]
lib/libgcc_s_empty/shlib_version [new file with mode: 0644]

index b72a16bcb6c2f00ea1fcd1b8d6e7c4e9f12e0339..0672883fe01b36b2c56009eab02bb316c5f3eb9a 100644 (file)
 ./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
index 9a1703b8690a640a0e2895c8da49f7bbf59bedb3..ce85d66496228dd23009b21f4a431af093d95bb3 100644 (file)
@@ -52,6 +52,10 @@ SUBDIR+=     libasyn \
                libusb \
                libvtreefs
 
+.if (${HAVE_LIBGCC} == "no")
+SUBDIR+=       libgcc_s_empty
+.endif
+
 .if (${MKLWIP} == "yes")
 SUBDIR+=       liblwip \
                libnetsock
diff --git a/lib/libgcc_s_empty/Makefile b/lib/libgcc_s_empty/Makefile
new file mode 100644 (file)
index 0000000..306ed64
--- /dev/null
@@ -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>
diff --git a/lib/libgcc_s_empty/empty.c b/lib/libgcc_s_empty/empty.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/libgcc_s_empty/libgcc_s_empty.map b/lib/libgcc_s_empty/libgcc_s_empty.map
new file mode 100644 (file)
index 0000000..eb082af
--- /dev/null
@@ -0,0 +1,5 @@
+GCC_3.0 {
+       global:
+               *;
+};
+
diff --git a/lib/libgcc_s_empty/shlib_version b/lib/libgcc_s_empty/shlib_version
new file mode 100644 (file)
index 0000000..1edea46
--- /dev/null
@@ -0,0 +1,2 @@
+major=1
+minor=0