mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 17:07:15 +00:00
automake: Link with C++ linker
If automake sees no C++ files in the source it assumes have to use C linker settings not linking C++ library. This was not a problem as code did not use C++ libraries but next patch will use pure virtual function call. It could be provided but as later we will use RTTI use C++ library. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
6e14b6bc99
commit
38cd152952
@ -214,6 +214,9 @@ endif
|
||||
|
||||
libspice_server_la_LIBADD = libserver.la
|
||||
libspice_server_la_SOURCES =
|
||||
## see https://www.gnu.org/software/automake/manual/html_node/Libtool-Convenience-Libraries.html
|
||||
## ("Libtool Convenience Libraries")
|
||||
nodist_EXTRA_libspice_server_la_SOURCES = dummy.cpp
|
||||
|
||||
spice-server-enums.c: spice-server.h spice-server-enums.c.tmpl
|
||||
$(AM_V_GEN)glib-mkenums --template $(srcdir)/spice-server-enums.c.tmpl $< > $@
|
||||
|
||||
@ -74,6 +74,8 @@ check_PROGRAMS = \
|
||||
test-record \
|
||||
$(NULL)
|
||||
|
||||
LINK = $(CXXLINK)
|
||||
|
||||
if HAVE_SMARTCARD
|
||||
check_PROGRAMS += test-smartcard
|
||||
test_smartcard_SOURCES = test-smartcard.cpp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user