[fpc-devel] rev 19036 breaks the Android cross-compiler

Tomas Hajny XHajT03 at hajny.biz
Tue Nov 15 16:39:07 CET 2011


On Tue, November 15, 2011 16:27, Felipe Monteiro de Carvalho wrote:
> On Tue, Nov 15, 2011 at 4:02 PM, Jonas Maebe <jonas.maebe at elis.ugent.be>
> wrote:
>> Having a separate Android target that reuses files from the Linux
>> directory and adding defines for that is fine (all Unix rtls share files
>> that way).
>
> This does not make the slightest sense. So the files in the linux
> directory are not expected at all to work in Android, and if they work
> it is pure luck, but still the android target should use them? Just to
> add the work of having to figure out what was broken when people
> change the linux rtl files without care for the android target?

In my opinion, the point is:

1) Different (compiled) versions of the RTL are required for real Linux
and Android anyway, so it makes sense to declare them as two distinct
targets (similarly to e.g. Darwin and FreeBSD).

2) As you correctly mention, the difference in behaviour requires someone
to take care about possible incompatibilities actively. The behaviour of
the platform differs and you cannot expect that current maintainers of the
Linux port take responsibility for testing Android compatibility in
addition to the Linux compatibility. Obviously, people making changes
should be aware that some parts are shared (similarly to Jonas and Marco
discussing impacts of some BSD related changes), but that doesn't mean
that everything always works out of the box.

Tomas





More information about the fpc-devel mailing list