From 11e494a572ce81a57c05fbe4214dd36b1c8ac4cf Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 20 Sep 2013 12:37:04 -0700 Subject: mesa: Use -Bsymbolic in the linker to locally resolve Mesa-internal symbols. Normally, LD_PRELOAD will take precedence over your own symbols, which you want for things like malloc() in libc. But we don't have any local symbols we would want overridden (like hash_table_insert(), for example!), so tell the linker to resolve them internally. This also avoids calls through the PLT. Saves almost 100k on libdricore's size, and gets us a bunch of the performance back that we had with non-dricore. Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i915/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i915') diff --git a/src/mesa/drivers/dri/i915/Makefile.am b/src/mesa/drivers/dri/i915/Makefile.am index 978917c6c3e..f66967d751f 100644 --- a/src/mesa/drivers/dri/i915/Makefile.am +++ b/src/mesa/drivers/dri/i915/Makefile.am @@ -52,7 +52,7 @@ dri_LTLIBRARIES = i915_dri.la endif i915_dri_la_SOURCES = $(i915_FILES) -i915_dri_la_LDFLAGS = -module -avoid-version -shared +i915_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS) i915_dri_la_LIBADD = \ ../common/libdricommon.la \ $(DRI_LIB_DEPS) \ -- cgit v1.2.3