[RFC PATCH:xf86-video-mga 13/15] Link with modules needed to build with no-undefined linking

Alan Coopersmith alan.coopersmith at oracle.com
Fri May 25 08:02:17 PDT 2012


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/Makefile.am |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 44417de..5f5e2ad 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,7 +27,9 @@ AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
 mga_drv_la_LTLIBRARIES = mga_drv.la
 mga_drv_la_LDFLAGS = -module -avoid-version
 mga_drv_ladir = @moduledir@/drivers
-mga_drv_la_LIBADD = $(noinst_LTLIBRARIES)
+mga_drv_la_LIBADD = $(noinst_LTLIBRARIES) $(XORG_LIBS) $(PCIACCESS_LIBS)
+mga_drv_la_LIBADD += -L$(moduledir) -lfb -lpixman-1 -lshadowfb -lfbdevhw
+mga_drv_la_LIBADD += -lvgahw -lvbe -lint10
 
 mga_drv_la_SOURCES = \
          binding.h \
@@ -62,14 +64,17 @@ mga_drv_la_SOURCES += \
 	mga_dri.c \
         mga_dri.h \
         mga_dripriv.h
+mga_drv_la_LIBADD += -L$(moduledir)/extensions -ldrm -ldri -lglx
 endif
 
 if USE_EXA
 mga_drv_la_SOURCES += \
     mga_exa.c
+mga_drv_la_LIBADD += -lexa
 endif
 
 if USE_XAA
 mga_drv_la_SOURCES += \
     mga_storm.c
+mga_drv_la_LIBADD += -lxaa
 endif
-- 
1.7.9.2



More information about the xorg-devel mailing list