From 9a60da2834074d970ca063c210fe9d2f05c70532 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Tue, 23 Nov 2010 21:12:11 +0100 Subject: build-sys: allow cross-compilation When cross-compiling systemd, the introspection XML files fail to be generated because the systemd host binary is not executable. This patch works around this by putting the introspection XML data into separate ELF sections and extracting them from the binary when generating the XML files. The extracted XML data is passed through the strings utility in order to strip the trailing NUL character. A small AWK script is used to prepend the doctype and add the opening and closing node tags respectively. Finally, the C preprocessor is used to substitute the correct doctype information from the D-Bus header files. --- src/dbus-automount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dbus-automount.c') diff --git a/src/dbus-automount.c b/src/dbus-automount.c index 3bccb4e5f7..af277af39c 100644 --- a/src/dbus-automount.c +++ b/src/dbus-automount.c @@ -38,7 +38,7 @@ BUS_INTROSPECTABLE_INTERFACE \ "\n" -const char bus_automount_interface[] = BUS_AUTOMOUNT_INTERFACE; +const char bus_automount_interface[] _introspect_("Automount") = BUS_AUTOMOUNT_INTERFACE; DBusHandlerResult bus_automount_message_handler(Unit *u, DBusConnection *c, DBusMessage *message) { const BusProperty properties[] = { -- cgit v1.2.3-54-g00ecf