tests: shuffle around the linking order to please GNU ld
Classic GNU ld resolves symbol dependencies only forward, while GOLD seems to work regardless of the specified library order. Suggested-by: Eero Tamminen <eero.t.tamminen@intel.com> Reviewed-by: Mihail Konev <k.mvc@ya.ru> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
This commit is contained in:
parent
cc0f173ea2
commit
b1a6986395
|
@ -64,7 +64,7 @@ tests_LDFLAGS = \
|
|||
-Wl,-wrap,GrabButton \
|
||||
$()
|
||||
|
||||
tests_LDADD = $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) $(GLX_SYS_LIBS)
|
||||
tests_LDADD =
|
||||
|
||||
tests_SOURCES = \
|
||||
tests-common.c \
|
||||
|
@ -225,6 +225,10 @@ endif
|
|||
|
||||
endif !XORG
|
||||
|
||||
# GNU LD scans only in one direction, add the following dependencies at the end
|
||||
# so as they get picked up by the previously-linked libraries
|
||||
tests_LDADD += $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) $(GLX_SYS_LIBS)
|
||||
|
||||
endif ENABLE_UNIT_TESTS
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
|
Loading…
Reference in New Issue