gallium/dri targets: use DRI_DRIVER_LDFLAGS
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Oct 2013 17:52:13 +0000 (19:52 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 9 Oct 2013 10:04:38 +0000 (12:04 +0200)
which contains -Wl,-Bsymbolic. If I understand it correctly, it prevents
symbols from clashing if multiple drivers are loaded at the same time.

Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/dri-freedreno/Makefile.am
src/gallium/targets/dri-i915/Makefile.am
src/gallium/targets/dri-ilo/Makefile.am
src/gallium/targets/dri-nouveau/Makefile.am
src/gallium/targets/dri-swrast/Makefile.am
src/gallium/targets/dri-vmwgfx/Makefile.am
src/gallium/targets/r300/dri/Makefile.am
src/gallium/targets/r600/dri/Makefile.am
src/gallium/targets/radeonsi/dri/Makefile.am

index ac7460a365d08a453ca2b4dfcffc6d7c71c94c42..228fafc65ff70d79595bd586b9bd9f2615553340 100644 (file)
@@ -39,7 +39,7 @@ AM_CPPFLAGS = \
 dridir = $(DRI_DRIVER_INSTALL_DIR)
 dri_LTLIBRARIES = kgsl_dri.la msm_dri.la
 
-COMMON_LDFLAGS = -module -avoid-version -shared -no-undefined
+COMMON_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 COMMON_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index e1c6ecab4b445857d73f5791cf7e59408478f16c..851c412ce296d7284117800ab1636f0961f296dc 100644 (file)
@@ -42,7 +42,7 @@ dri_LTLIBRARIES = i915_dri.la
 
 i915_dri_la_SOURCES = target.c
 
-i915_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+i915_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 i915_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index 88233f651ba09809431ac96c00fd1ef7030d254f..776c970ce8f85893a077fb6cf0b825783ee0645b 100644 (file)
@@ -42,7 +42,7 @@ noinst_LTLIBRARIES = ilo_dri.la
 ilo_dri_la_SOURCES = target.c
 
 # need -rpath to create a noinst shared library
-ilo_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined \
+ilo_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS) \
                     -rpath $(abs_builddir)
 
 ilo_dri_la_LIBADD = \
index a02394e42d33f9f88de9bb696ee486b6b38a6bff..17b2c4a4adad862a561e2b7768452954e36a9a93 100644 (file)
@@ -41,7 +41,7 @@ dri_LTLIBRARIES = nouveau_dri.la
 nodist_EXTRA_nouveau_dri_la_SOURCES = dummy.cpp
 nouveau_dri_la_SOURCES = target.c
 
-nouveau_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+nouveau_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 nouveau_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index 0ab6cc6d00c3c26409a21edfb2df78308e7fd55f..cdbda976457adc0585b78da52d4b105cc3d7dd87 100644 (file)
@@ -47,7 +47,7 @@ swrast_dri_la_SOURCES = \
        $(top_srcdir)/src/mesa/drivers/dri/common/drisw_util.c \
        $(top_srcdir)/src/mesa/drivers/dri/common/xmlconfig.c
 
-swrast_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+swrast_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 swrast_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/libmesagallium.la \
index f7008ab8179cfd93caffd4d6b8e641cbf8cff1e9..5ff521e5493eb6ae58d920836fe3c6cdf02f08bf 100644 (file)
@@ -42,7 +42,7 @@ vmwgfx_dri_la_SOURCES = \
        target.c \
        vmw_powf.c
 
-vmwgfx_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+vmwgfx_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 vmwgfx_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index 185330bf3e48b914ebdb5bd81607f81092ea3859..4b41c3077b29474a00aa075e7e19f7ef994c4b80 100644 (file)
@@ -44,7 +44,7 @@ nodist_EXTRA_r300_dri_la_SOURCES = dummy.cpp
 r300_dri_la_SOURCES = \
        ../drm_target.c
 
-r300_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+r300_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 r300_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index fbd0c244075adbbf77358e2febdca66c45303c01..c7fca320f2b37841e8b791367dfcc40c10eb24bf 100644 (file)
@@ -43,7 +43,7 @@ dri_LTLIBRARIES = r600_dri.la
 r600_dri_la_SOURCES = \
        ../drm_target.c
 
-r600_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+r600_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 r600_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \
index f8e35e91269e10230e9d11a491d08a48e1cc5379..8a78f1b80d4be1593d5be381fb1b16a3f695d420 100644 (file)
@@ -44,7 +44,7 @@ nodist_EXTRA_radeonsi_dri_la_SOURCES = dummy.cpp
 radeonsi_dri_la_SOURCES = \
        ../drm_target.c
 
-radeonsi_dri_la_LDFLAGS = -module -avoid-version -shared -no-undefined
+radeonsi_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS)
 
 radeonsi_dri_la_LIBADD = \
        $(top_builddir)/src/mesa/drivers/dri/common/libdricommon.la \