|
From: Paul G. <pga...@te...> - 2000-12-06 00:50:13
|
On 1 Dec 2000, at 14:07, the Illustrious Edmund Ng wrote:
> Hi folks,
>
> I was just wondering for those of you who do both cross compile
> and native compile... Is there a difference between the
> compilation process for a cross compile from UNIX to NT and a
> native compile on NT. I would guess that the make files are the
> same. Is that correct?
Ummm...not sure about this since I haven't had the time to
install my Solaris OS yet for this Ix86 processor.
Even so, and if I understand the question properly, restated it
is as follows:
Can I use the same makefiles I use for Solaris make process to
make applications on an MS based target?
If this is the question, the answer is "no". This has to do
with, in unix terms, the strange needs of the MS-DOS command
line shell (ie. NT virtual dos machine).
More specifically, it depends on the make release that is being
used.
The latest gnumake, afaik, can convert the "/" to "\" when make
is executed. However, again afaik, if you are attempting to
generate win32 headers or source code using make, the answer is
always "no" because the latest gnumake requires additional
"subst" macros/commands in order to generate clean headers and
source code.
There is one more consideration. The problems that arise from
targetting an MS supplied OS are minimized if you are using an
Ix86 based release of the Solaris OS.
On a final note, most of the problems that come up are directly
related to the shell interface being used.
For example (eg.), If you install a unix type of shell (zsh,
bash, etc.) on the target platform (Ix86 in this case) there
are, again afaik, no known problems with using your Solaris
shell command scripts (#bin, configure, make, etc.) within the
NT4 development environment (thanks in part to the posix
compliant subsystem included with NT4).
This latter statement is dependent upon whether or not the
shell add-on you choose to install on the NT4 platform can
support the Solaris shell script commands (Solaris/zsh,
Solaris/bash, etc.). The most popular NT4 shell interface tends
to be bash (eg. Cygwin) which can be built on both the Solaris
and the NT4 platforms as can zsh.
Peace,
Paul G.
Nothing real can be threatened.
Nothing unreal exists.
|