Mon Aug 15 14:56:57 2005 Søren Sandmann <sandmann@redhat.com>

Remove the xkb* files.
Add xkbVT.o and friends as the last things on the link line so they will
    override the symbols in libxkb.a. Add a comment on how this situation
    might not be considered ideal.
This commit is contained in:
Søren Sandmann Pedersen 2005-08-15 18:59:16 +00:00
parent bcc95c8340
commit 46aede552a
3 changed files with 36 additions and 11 deletions

View File

@ -1,3 +1,13 @@
Mon Aug 15 14:56:57 2005 Søren Sandmann <sandmann@redhat.com>
* hw/xfree86/dixmods/Makefile.am (libdixmods_la_SOURCES): Remove
the xkb* files.
* hw/xfree86/Makefile.am (Xorg_LDADD): Add xkbVT.o and friends as
the last things on the link line so they will override the symbols
in libxkb.a. Add a comment on how this situation might not be
considered ideal.
Mon Aug 8 13:36:23 2005 Søren Sandmann <sandmann@redhat.com>
* include/xorg-config.h.in: #undef PIXPRIV here.

View File

@ -12,6 +12,9 @@ DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \
bin_PROGRAMS = Xorg
AM_CFLAGS = @XORG_CFLAGS@
INCLUDES = @XORG_INCS@
Xorg_SOURCES = xorg.c
DISTCLEANFILES = xorg.c
@ -41,11 +44,32 @@ XORG_LIBS = \
parser/libparser.a \
$(OS_LIBS) \
dummylib/libdummy.a \
dixmods/libdixmods.la \
dixmods/libdixmods.la \
@XORG_LIBS@
#
# The xkbVT.c xkbKillSrv.c and xkbPrivate.c files used below are really
# the same files as ddxVT.c ddxKillSrv.c and ddxPrivate.c from
# $(top_srcdir)/xkb. However they are compiled with the flag
# XF86DDXACTIONS which means they'll do stuff like Ctrl-Alt-Fx etc.
# They have to be last on the link line so that their symbols will
# override the ones from libxkb.a.
#
# Unfortunately, those symbols can't be removed from libxkb because that
# causes other ddx'es to break. One possible fix would be to turn libxkb
# into shared a shared library and add API that would people linking to
# it to install callbacks for those actions.
#
xkb%.c:
echo "#define XF86DDXACTIONS" > $@
echo "#include \"$(top_srcdir)/xkb/ddx$*.c\"" >> $@
Xorg_LDADD = $(XORG_LIBS) \
@XSERVER_LIBS@ \
xkbVT.o \
xkbKillSrv.o \
xkbPrivate.o \
-ldl
Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)

View File

@ -88,13 +88,4 @@ libshadow_la_LDFLAGS = -avoid-version
libshadow_la_LIBADD = $(top_builddir)/miext/shadow/libshadow.la
libshadow_la_SOURCES = shmodule.c
libdixmods_la_SOURCES = xkbKillSrv.c \
xkbPrivate.c \
xkbVT.c \
$(top_srcdir)/mi/miinitext.c
xkb%.c:
echo "#define XF86DDXACTIONS" > $@
echo "#include \"$(top_srcdir)/xkb/ddx$*.c\"" >> $@
DISTCLEANFILES = xkbKillSrv.c xkbPrivate.c xkbVT.c
libdixmods_la_SOURCES = $(top_srcdir)/mi/miinitext.c