Re: [PATCH] [kbuild] Possibility to sanely link against off-directory .so

From: Roman Zippel (zippel@linux-m68k.org)
Date: Thu Nov 07 2002 - 08:45:31 EST


Hi,

On Thu, 7 Nov 2002, Peter Samuelson wrote:

> Even if this is true - I'll grant you that it may be - let the vendor
> package /usr/bin/qconf as a shell script that links /usr/lib/qconf.o
> with -lqt and $(LINUX)/scripts/kconfig/libkconfig.a . It's a little
> unorthodox, but it removes the hackery of figuring out how HOSTCC is
> supposed to build a shared library and whether any magic is needed at
> runtime. Removes the need for the horrible stuff libtool was invented
> for, in other words.
>
> Remember, the whole point of HOSTCC is to support a build environment
> different from the compile target - arbitrarily different, even.

If your build environment doesn't support shared libraries, you can easily
generate a static library instead and link against it yourself, like you
described, but it's no reason to deny the convenience to working
environments.

bye, Roman

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



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:48 EST