summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/Automake.inc
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-02-28 10:55:46 +0000
committerEmil Velikov <[email protected]>2017-02-28 10:55:46 +0000
commit3bbbb63801c9c30440398563d6090029f9c7b51c (patch)
tree5f060e8bf08bcaeab3de60499ec5f054b6a104b0 /src/gallium/drivers/radeonsi/Automake.inc
parent8af447d6f0aa5bd8f674536cd06986cced2b8055 (diff)
automake: r600: radeonsi: correctly manage libamd_common.la linking
Since both r600 and radeonsi use code from libamd_common they need to static link it. At the same time, adding a common library to LIB_DEPS is fragile [can lean to multiple symbol definitions] and non-obvious - I had to do a double-take how things work atm. So follow the libradeon.la approach and put common libraries in TARGET_RADEON_COMMON Fixes: 936f5407a7d ("gallium/radeon: Add libamd_common.a to TARGET_LIB_DEPS also for r600") Cc: Timothy Arceri <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Acked-by: Marek Olšák <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Tested-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/Automake.inc')
-rw-r--r--src/gallium/drivers/radeonsi/Automake.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/Automake.inc b/src/gallium/drivers/radeonsi/Automake.inc
index 5a9dcfd9fd6..1bc7b93f8c3 100644
--- a/src/gallium/drivers/radeonsi/Automake.inc
+++ b/src/gallium/drivers/radeonsi/Automake.inc
@@ -13,6 +13,7 @@ TARGET_RADEON_WINSYS = \
$(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la
TARGET_RADEON_COMMON = \
- $(top_builddir)/src/gallium/drivers/radeon/libradeon.la
+ $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
+ $(top_builddir)/src/amd/common/libamd_common.la
endif