[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] arm-pe-tcc crosscompiler
From: |
Timo VJ Lähde |
Subject: |
Re: [Tinycc-devel] arm-pe-tcc crosscompiler |
Date: |
Tue, 20 Apr 2010 16:57:32 +0300 |
This patch correct library names for arm wince:
---------------------------------------------------------------------
--- a\tccpe.c Mon Apr 19 15:34:58 2010
+++ b\tccpe.c Tue Apr 20 14:42:57 2010
@@ -1770,7 +1770,11 @@
if (0 == s1->nostdlib) {
static const char *libs[] = {
+#ifdef TCC_TARGET_ARM
+ "tccce1", "coredll", "", "aygshell", NULL
+#else
"tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL
+#endif
};
const char **pp, *p;
for (pp = libs; 0 != (p = *pp); ++pp) {
---------------------------------------------------------------------
Minimal startup routine
//+--------------------------------------------------------------------------- // wincrtce1.c #define
WIN32_LEAN_AND_MEAN #include <windows.h> int _winstart(void) { WCHAR *szCmd; szCmd =
GetCommandLineW(); if (szCmd) { while (' ' == *szCmd) szCmd++; if ('\"' == *szCmd) { while
(*++szCmd) if ('\"' == *szCmd) { szCmd++; break; } } else { while (*szCmd && ' '
!= *szCmd) szCmd++; } while (' ' == *szCmd) szCmd++; } return (WinMain(GetModuleHandleW(NULL), NULL,
szCmd, SW_SHOWNORMAL)); } ---------------------------------------------------------------------
tiny_libmaker libtccce1.a wincrtce1.o Links: coredll.def
http://www.koders.com/noncode/fidB645C45D753E275889C2D6971A4708B18E4A5279.aspx aygshell.def
http://www.koders.com/noncode/fid0002CC895BA2F5660AA157B6B83FD0BD7EFFACAB.aspx Header files w32api from
MinGW.org http://sourceforge.net/projects/mingw/files/ -- Timppa
tccpe.c.wince-1.patch
Description: Binary data