diff options
author | Julien Cristau <jcristau@debian.org> | 2008-07-06 12:17:28 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-07-14 13:03:20 +0200 |
commit | a5e0cf13dc7ace6cf0e44e18b73b9a9266e740ab (patch) | |
tree | c150096a15e0784ebfc5a4318e4c1f7222d9cbfe | |
parent | f8da849fd89322a54cc4d722767da755358eab70 (diff) |
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.
-rw-r--r-- | src/Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
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 |