Building on platforms other than Linux

From: Benno
Date: Wed Aug 11 2004 - 04:16:37 EST


Hi,

I was wondering if there were any, in priniciple, objections
to making the Linux kernel buildable on different Unix-like
platforms?

I am currently compiling on MacOSX and this, for the most part was
fairly straightforward and simple. The biggest gotcha I had was
that libkconfig is compiled as a shared library, and unfortunately shared
libraries are done quite different on different systems. Specifically MacOSX
doesn't support gcc -shared.

libkconfig.so appears to be the only shared library created in the
build system, and given that it is only about 95K, and that you don't
often run two copies of conf at once, it doesn't seem to buy much.

The only other reason for doing it this way is to provide a plugin
style architecture but this doesn't appear evident. gconf and qconf
appear to manually load libkconfig.so (rather than linking against
it), but in both cases it appears to be the very first thing they
do is explicitly load libconfig.

It would seem that using static libraries would enhance portability,
and produce a simpler build system, however I expect I am missing some
other reasons.

In summary two questions:

1: Is portability of the build system a desirable property?

2: If so, is moving to static libraries a valid way of achieving this?

Thanks,

Benno
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/