newlib: 1)native console support for printf.c() and puts.c()

2)static libc and linking against static libraries

git-svn-id: svn://kolibrios.org@6068 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2016-01-18 02:22:44 +00:00
parent 73fdb3cb47
commit 0b1b135336
13 changed files with 1028 additions and 142 deletions

View File

@@ -22,6 +22,8 @@
#include <stdarg.h>
#include "local.h"
int __gui_mode;
int
_DEFUN(_printf_r, (ptr, fmt),
struct _reent *ptr _AND
@@ -55,3 +57,11 @@ _DEFUN(printf, (fmt),
}
#endif /* ! _REENT_ONLY */
extern int __gui_mode;
extern void __attribute__ ((constructor)) __init_conio();
static void __attribute__ ((constructor)) init_printf()
{
__gui_mode = (int)&__init_conio;
}