> I said "almost" on par because I've been having
issues when building
> with --disable-shared and --enable-static. When trying this I get an
> error telling me to add -ldl to the LDFLAGS which I've done and it
> does in fact seem to build correctly. However, with this, the backends
> don't get registered and I, of course, get tons of problems when
> running the tests. This issue exists in the first commit on my branch
> which moved the dbus-server over to its own directory. However,
> everything does seem to build and work fine with only --enable-static
> specified which is what I've been using for running the tests.
Did you notice the rules which add the backend's *Register.cpp files to
the syncevo-dbus-server?
src/Makefile.am (generated from Makefile-gen.am) contains:
BACKEND_REGISTRIES = ... backends/.../*Register.cpp
This is then added to syncevo-dbus-server via:
CORE_SOURCES += $(BACKEND_REGISTRIES)
syncevo_dbus_server_SOURCES = \
...
$(CORE_SOURCES)
Yes, I've got that in my src/dbus-server/Makefile-gen.am. In fact,
that's why I had to use the "-gen." That appears to give me what I
need in the generated Makefile.am but maybe I'm fumbling something.
The easiest solution might be to keep linking the main
syncevo-dbus-server in "src", but with all code compiled in a
sub-directory into a helper library.
I attempted this but had the same results. Here is the patch I tried:
http://pastebin.com/L8BKtY7Z
Does that look like what you had in mind?
Cheers,
Chris