[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] cross build
From: |
Sergey Lyubka |
Subject: |
Re: [Tinycc-devel] cross build |
Date: |
Thu, 7 Dec 2006 12:01:46 +0000 |
Figured that out, eventually.
the tccelf.c must be enclosed to #undef __FreeBSD__ #endif block,
the CONFIG_TCC_CRT_PREFIX must be set to the directory with linux crt*
files, and library search path must point to the linux libraries.
The resulting binary cannot run on FreeBSD on linux emulation, but
they happily run on native linux. I tested that with hello world
program, did not try 'serious' stuff yet.
sergey