[Mesa-dev] [PATCH v2 30/32] dri drivers: Always add the sha1 build-id
Jordan Justen
jordan.l.justen at intel.com
Thu Oct 19 05:32:18 UTC 2017
Cc: Dylan Baker <dylanx.c.baker at intel.com>
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/Makefile.am | 1 +
src/mesa/drivers/dri/meson.build | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/Makefile.am b/src/mesa/drivers/dri/Makefile.am
index 95c637d0cd..5cb2127501 100644
--- a/src/mesa/drivers/dri/Makefile.am
+++ b/src/mesa/drivers/dri/Makefile.am
@@ -57,6 +57,7 @@ mesa_dri_drivers_la_LDFLAGS = \
-module \
-no-undefined \
-avoid-version \
+ -Wl,--build-id=sha1 \
$(BSYMBOLIC) \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
diff --git a/src/mesa/drivers/dri/meson.build b/src/mesa/drivers/dri/meson.build
index 36079324d4..98ed28d04c 100644
--- a/src/mesa/drivers/dri/meson.build
+++ b/src/mesa/drivers/dri/meson.build
@@ -41,7 +41,7 @@ if dri_drivers != []
libmesa_util, libnir, libmesa_classic],
dependencies : [dep_selinux, dep_libdrm, dep_expat, dep_m, dep_thread,
dep_dl],
- link_args : [ld_args_bsymbolic, ld_args_gc_sections],
+ link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
)
pkg.generate(
--
2.15.0.rc0
More information about the mesa-dev
mailing list