summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2011-08-04 13:37:42 +0200
committerBenjamin Franzke <[email protected]>2011-08-04 14:09:34 +0200
commitca6bbfd76960731926c99d0b6257b42344596794 (patch)
tree14ce26313d07dd0d6c8b2fb346b4c84fa2ebc613 /src/gallium/targets
parenteeed782ecb9fa92a958cb650c0a5a536556dc611 (diff)
gbm: link gbm_gallium_drm.so against math library
This avoids the following runtime error with EGL on platforms that require linking with libm for nontrivial math functions: failed to load module: /xorg/lib64/gbm/gbm_gallium_drm.so: undefined symbol: powf (Based on Kristóf RALOVICHs patch and Ian's suggestions in http://lists.freedesktop.org/archives/mesa-dev/2011-August/010036.html)
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/gbm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/targets/gbm/Makefile b/src/gallium/targets/gbm/Makefile
index 3ad3eca1d13..b38782c4070 100644
--- a/src/gallium/targets/gbm/Makefile
+++ b/src/gallium/targets/gbm/Makefile
@@ -15,7 +15,7 @@ GBM_INCLUDES = \
-I$(TOP)/src/gallium/auxiliary \
-I$(TOP)/src/gallium/include \
-GBM_LIBS = $(LIBUDEV_LIBS) $(LIBDRM_LIB) \
+GBM_LIBS = $(LIBUDEV_LIBS) $(LIBDRM_LIB) -lm \
$(TOP)/src/gallium/state_trackers/gbm/libgbm.a \
$(TOP)/src/gallium/drivers/identity/libidentity.a \
$(TOP)/src/gallium/drivers/galahad/libgalahad.a \