aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile1
-rw-r--r--lib/libgcc_s_asneeded/Makefile11
-rw-r--r--lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript1
3 files changed, 13 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 78b48382e12e..27f757eb085c 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -61,6 +61,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
libfetch \
libgcc_eh \
libgcc_s \
+ libgcc_s_asneeded \
libgeom \
libifconfig \
libipsec \
diff --git a/lib/libgcc_s_asneeded/Makefile b/lib/libgcc_s_asneeded/Makefile
new file mode 100644
index 000000000000..eb59daac50f8
--- /dev/null
+++ b/lib/libgcc_s_asneeded/Makefile
@@ -0,0 +1,11 @@
+PACKAGE= clibs
+SHLIB_NAME= libgcc_s_asneeded.so.1
+SHLIBDIR?= /lib
+
+SHLIB_LDSCRIPT= libgcc_s_asneeded.ldscript
+
+.include <bsd.opts.mk>
+
+LDFLAGS+= -nodefaultlibs
+
+.include <bsd.lib.mk>
diff --git a/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript b/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript
new file mode 100644
index 000000000000..3461e92fa7ca
--- /dev/null
+++ b/lib/libgcc_s_asneeded/libgcc_s_asneeded.ldscript
@@ -0,0 +1 @@
+INPUT (AS_NEEDED(-lgcc_s))