aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in')
-rw-r--r--lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in b/lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in
new file mode 100644
index 0000000..4304c4d
--- /dev/null
+++ b/lib/mlibc/sysdeps/linux/mlibc-gcc.specs.in
@@ -0,0 +1,32 @@
+%rename cpp_options old_cpp_options
+
+*cpp_options:
+-nostdinc -isystem @PREFIX@/include -isystem include%s %(old_cpp_options)
+
+*cc1:
+%(cc1_cpu) -nostdinc -isystem @PREFIX@/include -isystem include%s
+
+*link_libgcc:
+-L@PREFIX@/@LIBDIR@ -L .%s
+
+*libgcc:
+libgcc.a%s %:if-exists(libgcc_eh.a%s)
+
+*startfile:
+%{!shared: @PREFIX@/@LIBDIR@/Scrt1.o} @PREFIX@/@LIBDIR@/crti.o crtbeginS.o%s
+
+*endfile:
+crtendS.o%s @PREFIX@/@LIBDIR@/crtn.o
+
+*link:
+-dynamic-linker @PREFIX@/@LIBDIR@/ld.so -rpath @PREFIX@/@LIBDIR@ -nostdlib %{shared:-shared} %{static:-static} %{rdynamic:-export-dynamic}
+
+*esp_link:
+
+
+*esp_options:
+
+
+*esp_cpp_options:
+
+