From a5e0cf13dc7ace6cf0e44e18b73b9a9266e740ab Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 6 Jul 2008 12:17:28 +0200 Subject: Link with -lpciaccess and -ldrm if needed This makes sure the driver ends up with a DT_NEEDED reference to the libraries it's using. --- src/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 53334951..97c686bc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -26,8 +26,11 @@ # _ladir passes a dummy rpath to libtool so the thing will actually link # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. +radeon_drv_la_LIBADD = + if DRI RADEON_DRI_SRCS = radeon_dri.c +radeon_drv_la_LIBADD += $(DRI_LIBS) endif RADEON_ATOMBIOS_SOURCES = \ @@ -70,6 +73,11 @@ AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ @XMODES_CFLAGS@ -DDISABLE_EASF -DENABLE_A INCLUDES = -I$(srcdir)/AtomBios/includes +if XSERVER_LIBPCIACCESS +ati_drv_la_LIBADD = $(PCIACCESS_LIBS) +radeon_drv_la_LIBADD += $(PCIACCESS_LIBS) +endif + ati_drv_la_LTLIBRARIES = ati_drv.la ati_drv_la_LDFLAGS = -module -avoid-version ati_drv_ladir = @moduledir@/drivers -- cgit v1.2.3