mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 21:38:00 +02:00
Move libdbus-init-win.cpp to its own convenience library
Otherwise libdbus-1 ends up linked as if it contained C++, even on Unix, where it doesn't; in turn, that makes it export all the underscore-prefixed symbols that aren't meant to be exported. Reviewed-by: Thiago Macieira <thiago@kde.org> Reviewed-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
dab4284a24
commit
74651d3b17
1 changed files with 11 additions and 1 deletions
|
|
@ -72,7 +72,6 @@ endif
|
|||
DBUS_SHARED_arch_sources = \
|
||||
$(wince_source) \
|
||||
dbus-file-win.c \
|
||||
dbus-init-win.cpp \
|
||||
dbus-pipe-win.c \
|
||||
dbus-sockets-win.h \
|
||||
dbus-sysdeps-win.c \
|
||||
|
|
@ -296,6 +295,17 @@ libdbus_internal_la_CPPFLAGS = \
|
|||
$(NULL)
|
||||
libdbus_internal_la_LIBADD=$(LIBDBUS_LIBS) $(SYSTEMD_LIBS)
|
||||
|
||||
if DBUS_WIN
|
||||
# This must be a separate convenience library, otherwise libtool notices
|
||||
# that libdbus-1 might contain C++, links it with g++ and links in libstdc++,
|
||||
# even on Unix where in fact it doesn't contain any C++. For Windows, where
|
||||
# this code is used, we don't actually need libstdc++.
|
||||
noinst_LTLIBRARIES += libdbus-init-win.la
|
||||
libdbus_init_win_la_SOURCES = dbus-init-win.cpp
|
||||
libdbus_1_la_LIBADD += libdbus-init-win.la
|
||||
libdbus_internal_la_LIBADD += libdbus-init-win.la
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS =
|
||||
|
||||
if DBUS_BUILD_TESTS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue