diff options
author | Mihail Konev <k.mvc@ya.ru> | 2016-12-29 12:37:18 +0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-01-02 12:45:28 -0500 |
commit | 5b74e260e009d8bdf26433724495802b85cce7c3 (patch) | |
tree | dc4613a59f8990654520fbed7efe9bb44f8c2837 /os | |
parent | b5dffbbac193aa640ffcfa0a431c21b862854e53 (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>
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 |