diff options
author | Mihail Konev <k.mvc@ya.ru> | 2016-12-29 12:37:18 +0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-01-11 15:01:36 -0500 |
commit | 8790bd993ac2f8f8dd54a1946312e6b6dc929e00 (patch) | |
tree | 855716970b3d249c610610f278225762807c41ff /os | |
parent | 8cf47472bff1d5ca3de6ff83a80f0d2820c3fb93 (diff) |
os,dix: Depend custom libs on libs, not objects
The custom os/os.O library reuses *.o files of os/libos.la.
The current rule assumes automake puts all the objects into per-target
am__*_la_OBJECTS variable. At least with AC_REPLACE_FUNCS, this no
longer holds (as wanted objects are put into LTLIBOBJS instead).
Depend on automake's result, the *.la library instead, to express demand
of any its dependencies being built.
Should be fixing randomly occuring "undefined reference to `strlcpy'"
errors when linking Xvfb and other DDX-es that could use os.O.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
(cherry picked from commit 5b74e260e009d8bdf26433724495802b85cce7c3)
Diffstat (limited to 'os')
-rw-r--r-- | os/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/Makefile.am b/os/Makefile.am index b5fb9d0fa..c6e78cb99 100644 --- a/os/Makefile.am +++ b/os/Makefile.am @@ -58,12 +58,12 @@ EXTRA_DIST = $(SECURERPC_SRCS) $(XDMCP_SRCS) if SPECIAL_DTRACE_OBJECTS # Generate dtrace object code for probes in libos & libdix -dtrace.o: $(top_srcdir)/dix/Xserver.d $(am_libos_la_OBJECTS) +dtrace.o: $(top_srcdir)/dix/Xserver.d libos.la $(AM_V_GEN)$(DTRACE) -G -C -o $@ -s $(top_srcdir)/dix/Xserver.d .libs/*.o ../dix/.libs/*.o noinst_PROGRAMS = os.O os_O_SOURCES = -os.O: dtrace.o $(am_libos_la_OBJECTS) +os.O: dtrace.o libos.la $(AM_V_GEN)ld -r -o $@ dtrace.o .libs/*.o endif |