1 diff --git a/Makefile b/Makefile
2 index 56f2ee9..64f08e9 100644
9 -LIBDIR = ${PREFIX}/lib
10 -INCLUDEDIR = ${PREFIX}/include
12 +LIBDIR ?= ${PREFIX}/lib64
13 +INCLUDEDIR ?= ${PREFIX}/include
16 - -std=c99 -O3 -DDBUS_COMPILATION -I. \
17 + -std=c99 -DDBUS_COMPILATION -I. \
18 -Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes \
19 -Wno-unused-parameter $(CFLAGS) $(CPPFLAGS)
23 +LDFLAGS += -Wl,-soname,libdbus.so.1
28 @@ -50,5 +54,6 @@ install: dbus-1.pc
29 cp -f libdbus-1.* $(DESTDIR)$(LIBDIR)
30 cp -f dbus-1.pc $(DESTDIR)$(LIBDIR)/pkgconfig
31 ln -sf libdbus-1.so $(DESTDIR)$(LIBDIR)/libdbus-1.so.3
32 + ln -sf libdbus-1.so $(DESTDIR)$(LIBDIR)/libdbus.so.1
34 .PHONY: all clean install
35 diff --git a/dbus-1.pc.in b/dbus-1.pc.in
36 index 7093deb..8b282e2 100644
39 @@ -18,4 +18,4 @@ Description: Free desktop message bus
41 Libs: -L${libdir} -ldbus-1
43 -Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
44 +Cflags: -I${includedir}/dbus-1.0
45 diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
46 index a92330d..4284571 100644
47 --- a/dbus/dbus-message.c
48 +++ b/dbus/dbus-message.c
49 @@ -261,7 +261,9 @@ dbus_uint32_t dbus_message_get_reply_serial(
50 void dbus_message_set_auto_start(
52 dbus_bool_t auto_start
58 dbus_bool_t dbus_message_get_auto_start(