* gcc flags: add -march=pentium-mmx -fno-rtti
* menuetlibc: fix printf, sprintf * menuetlibc: alias clock() to sysfn 26.9. Not exactly what is required by POSIX, but better than zero * autobuild games/checkers git-svn-id: svn://kolibrios.org@5123 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -68,7 +68,7 @@ FOLDERS = {
|
||||
"termios",
|
||||
}
|
||||
|
||||
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2"
|
||||
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx"
|
||||
OBJS={}
|
||||
for i,v in ipairs(FOLDERS) do
|
||||
tup.append_table(OBJS,
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <libc/file.h>
|
||||
|
||||
int
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <limits.h>
|
||||
#include <libc/file.h>
|
||||
|
||||
|
@@ -36,7 +36,6 @@ extern char __menuet__app_param_area[];
|
||||
void __crt1_startup(void)
|
||||
{
|
||||
init_brk();
|
||||
if(__menuet__app_param_area[0]!='\0')
|
||||
__crt0_setup_arguments();
|
||||
dosemu_inithandles();
|
||||
init_dir_stack();
|
||||
|
@@ -6,5 +6,7 @@
|
||||
|
||||
clock_t clock(void)
|
||||
{
|
||||
return 0;
|
||||
unsigned result;
|
||||
__asm__ __volatile__("int $0x40" : "=a"(result) : "a"(26), "b"(9));
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user