diff options
author | Eric Anholt <eric@anholt.net> | 2013-09-20 12:37:04 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-09-23 12:45:22 -0700 |
commit | 11e494a572ce81a57c05fbe4214dd36b1c8ac4cf (patch) | |
tree | 25f35087c0d870944982adc57401d67663a7948c /src/mesa/drivers/dri/i965/Makefile.am | |
parent | 10ef949424809d51c627008bb2feab5a067f8e08 (diff) | |
download | external_mesa3d-11e494a572ce81a57c05fbe4214dd36b1c8ac4cf.zip external_mesa3d-11e494a572ce81a57c05fbe4214dd36b1c8ac4cf.tar.gz external_mesa3d-11e494a572ce81a57c05fbe4214dd36b1c8ac4cf.tar.bz2 |
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 <ian.d.romanick@.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/Makefile.am')
-rw-r--r-- | src/mesa/drivers/dri/i965/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/Makefile.am b/src/mesa/drivers/dri/i965/Makefile.am index 27c67d1..541e0d6 100644 --- a/src/mesa/drivers/dri/i965/Makefile.am +++ b/src/mesa/drivers/dri/i965/Makefile.am @@ -72,7 +72,7 @@ TEST_LIBS = \ i965_dri_la_SOURCES = nodist_EXTRA_i965_dri_la_SOURCES = dummy2.cpp i965_dri_la_LIBADD = $(COMMON_LIBS) -i965_dri_la_LDFLAGS = -module -avoid-version -shared +i965_dri_la_LDFLAGS = $(DRI_DRIVER_LDFLAGS) TESTS = \ test_eu_compact \ |