]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix static linking with mingw
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 20 Feb 2015 16:14:08 +0000 (16:14 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 20 Feb 2015 20:50:04 +0000 (20:50 +0000)
Now that we're normally linking libdbus-1 dynamically, we need to
use DBUS_STATIC_BUILD_CPPFLAGS in every Makefile that would normally
link it dynamically, but might link it statically if we are only
building static libraries.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
bus/Makefile.am
dbus/Makefile.am
test/Makefile.am
test/name-test/Makefile.am

index 0b9998da3c165e34fee10390065e6ecfcb2ee0a5..1db7c9e12ca82b536acd04b70773f2563f2a6810 100644 (file)
@@ -18,11 +18,11 @@ DBUS_LAUNCHER_LIBS = \
 
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
+       $(DBUS_STATIC_BUILD_CPPFLAGS) \
        $(XML_CFLAGS) \
        $(APPARMOR_CFLAGS) \
        -DDBUS_SYSTEM_CONFIG_FILE=\""$(configdir)/system.conf"\" \
        -DDBUS_COMPILATION \
-       -DDBUS_STATIC_BUILD \
        $(NULL)
 
 # if assertions are enabled, improve backtraces
index 56668d30920778979f894b48747833ac9faeac2b..e5a5688ae065ffd96f407edfd7bcd00b2adc632d 100644 (file)
@@ -4,6 +4,7 @@ configdir=$(sysconfdir)/dbus-1
 AM_CPPFLAGS = \
        -I$(top_builddir) \
        -I$(top_srcdir) \
+       $(DBUS_STATIC_BUILD_CPPFLAGS) \
        $(SYSTEMD_CFLAGS) \
        $(VALGRIND_CFLAGS) \
        -DDBUS_COMPILATION \
index 723d7767e1c748494dd53359f90a66930095ac7f..54bcd86869ced41c7368c6aa1c8d27a0b22d16fb 100644 (file)
@@ -6,6 +6,7 @@ DIST_SUBDIRS=name-test
 
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
+       $(DBUS_STATIC_BUILD_CPPFLAGS) \
        -DDBUS_COMPILATION \
        $(GLIB_CFLAGS) \
        $(NULL)
index b28a7e86510283fc4f3823a12135bf7fd16f8000..c6611aa371d9e24287f32bd368475c9ef3ef6307 100644 (file)
@@ -1,5 +1,6 @@
 AM_CPPFLAGS = \
        -I$(top_srcdir) \
+       $(DBUS_STATIC_BUILD_CPPFLAGS) \
        -DDBUS_COMPILATION \
        $(NULL)