libraries.patch revision 1299
From c8fefc5e66d6eb6219c92a95a5a51120ae315fdd Mon Sep 17 00:00:00 2001
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Wed, 23 May 2012 23:10:26 -0700
Subject: [RFC PATCH:xf86-video-mga 13/15] Link with modules needed to build with
no-undefined linking
Signed-off-by: Alan Coopersmith <alan.coopersmith@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
@@ -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 = \
@@ -62,14 +64,17 @@ mga_drv_la_SOURCES += \
+mga_drv_la_LIBADD += -L$(moduledir)/extensions -ldrm -ldri -lglx
endif
if USE_EXA
mga_drv_la_SOURCES += \
+mga_drv_la_LIBADD += -lexa
endif
if USE_XAA
mga_drv_la_SOURCES += \
+mga_drv_la_LIBADD += -lxaa
endif
--
1.7.9.2