st/vdpau: Link vdpau targets with librt to avoid unresolved symbols error related...
authorEmeric Grange <emeric.grange@gmail.com>
Thu, 22 Sep 2011 19:03:43 +0000 (21:03 +0200)
committerChristian König <deathsimple@vodafone.de>
Sun, 25 Sep 2011 10:50:12 +0000 (12:50 +0200)
This patch fix a "Unresolved Symbols" run time error when using G3DVL
through the VDPAU state tracker, by linking the vdpau targets with librt.
Reported by Arkadiusz Miśkiewicz.

Caused by this commit :
commit e911dbb56374edf9f3b7c4cec0cf9a22738bb198
Author: Emeric Grange <emeric.grange@gmail.com>
Date:   Mon Sep 12 23:39:33 2011 +0200

Signed-off-by: Emeric Grange <emeric.grange@gmail.com>
src/gallium/targets/Makefile.vdpau

index c0937ff1aa516e6c18724a66a6010fc8dd2dcccc..c63491502c0b3332ae6a9e0287c683a0c7262f55 100644 (file)
@@ -11,7 +11,7 @@ INCLUDES = -I$(TOP)/src/gallium/include \
           -I$(TOP)/src/gallium/winsys/g3dvl \
           $(DRIVER_INCLUDES)
 DEFINES = -DGALLIUM_TRACE -DVER_MAJOR=$(VDPAU_MAJOR) -DVER_MINOR=$(VDPAU_MINOR) $(DRIVER_DEFINES)
-LIBS = $(EXTRA_LIB_PATH) $(DRIVER_LIBS) -lvdpau -lXext -lX11 -lm
+LIBS = $(EXTRA_LIB_PATH) $(DRIVER_LIBS) -lvdpau -lXext -lX11 -lm -lrt
 STATE_TRACKER_LIB = $(TOP)/src/gallium/state_trackers/vdpau/libvdpautracker.a
 
 ifeq ($(MESA_LLVM),1)