mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
tests/tools: add --as-needed to linker flags
Add --as-needed to the linker flags to reduce the number of shared library dependencies, since not all the tests and tools use all the libraries required by the helper library (for example, many tests do not use cairo). This helps portability of the binaries and also makes a very small improvement to the execution speed and memory consumption. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
88cbb41ade
commit
4ee6709e3b
@ -52,6 +52,7 @@ LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) $(LIBUNWIND_LIBS)
|
||||
|
||||
LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS) -lm
|
||||
AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
|
||||
AM_LDFLAGS = -Wl,--as-needed
|
||||
|
||||
drm_import_export_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
||||
drm_import_export_LDADD = $(LDADD) -lpthread
|
||||
|
@ -9,6 +9,7 @@ endif
|
||||
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib
|
||||
AM_CFLAGS = $(DEBUG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS)
|
||||
LDADD = $(top_builddir)/lib/libintel_tools.la $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(LIBUNWIND_LIBS) -lm
|
||||
AM_LDFLAGS = -Wl,--as-needed
|
||||
|
||||
|
||||
# aubdumper
|
||||
|
Loading…
x
Reference in New Issue
Block a user