summaryrefslogtreecommitdiffstats
path: root/src/gallium/Automake.inc
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-02-12 13:50:43 +0100
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2014-02-12 13:51:51 +0100
commit572a8345bfd1d6289a91b64eef92565ef9b3ee55 (patch)
treecbadc19c873d6441fd7630af1f69a4457985fd24 /src/gallium/Automake.inc
parent025d99ce3cea21c9ecea77b95655c0c838b2fa3c (diff)
downloadexternal_mesa3d-572a8345bfd1d6289a91b64eef92565ef9b3ee55.zip
external_mesa3d-572a8345bfd1d6289a91b64eef92565ef9b3ee55.tar.gz
external_mesa3d-572a8345bfd1d6289a91b64eef92565ef9b3ee55.tar.bz2
gallium makefiles: use a linker script for building dri drivers
Only export __driDriverExtensions by default, and radeon_drm_winsys_create on radeons. Remove -Bsymbolic which should no longer be needed. As a side effect, it ought to fix a manifestation of bug 73200 on radeon. Signed-off-by: Maarten Lankhorst<maarten.lankhorst@canonical.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/Automake.inc')
-rw-r--r--src/gallium/Automake.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
index 1e4a34f..fec69cc 100644
--- a/src/gallium/Automake.inc
+++ b/src/gallium/Automake.inc
@@ -51,12 +51,14 @@ GALLIUM_VIDEO_CFLAGS = \
$(VISIBILITY_CFLAGS)
-# TODO: add -export-symbols-regex
+DRI_VERSION_SCRIPT ?= $(top_srcdir)/src/gallium/state_trackers/dri/dri.link
+
GALLIUM_DRI_LINKER_FLAGS = \
-module \
-avoid-version \
+ -Wl,--version-script=$(DRI_VERSION_SCRIPT) \
-shared \
- -Wl,-Bsymbolic
+ -no-undefined
GALLIUM_VDPAU_LINKER_FLAGS = \
-module \