linking the kdrive

Daniel Stone daniel at fooishbar.org
Tue Jun 26 23:22:36 PDT 2007


On Wed, Jun 27, 2007 at 02:05:28AM -0300, Tiago Vignatti wrote:
> Seems that the kdrive isn't relinking correctly its src and linux
> directories. I've checked the Makefile.am rules and nothing seems
> strange. After, I explicit wrote the lib file (which is already on the
> KDRIVE_LIBS) and all looks like expected, as it follows below. Is this
> an automake bug/feature or am I missing something?
> 
> diff --git a/config/config.c b/config/config.c
> diff --git a/hw/kdrive/ephyr/Makefile.am b/hw/kdrive/ephyr/Makefile.am
> index 1e820c0..199e5a4 100644
> --- a/hw/kdrive/ephyr/Makefile.am
> +++ b/hw/kdrive/ephyr/Makefile.am
> @@ -27,6 +27,7 @@ Xephyr_LDADD =
>          \
>          libxephyr.a                                     \
>          libxephyr-hostx.a                               \
>          ../../../exa/libexa.la                          \
> +       ../src/libkdrive.a                              \
>          @KDRIVE_LIBS@                                   \
>           @XEPHYR_LIBS@

With this, if you changed, say, XKB, KDrive still wouldn't get relinked.
The proper solution is to make a KDRIVE_LOCAL_LIBS and
XSERVER_LOCAL_LIBS that contain _local_ libraries only, and no linker
flags, and set Xephyr_DEPENDENCIES (and others) to include these.

Cheers,
Daniel



More information about the xorg mailing list