diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2010-11-23 21:12:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-23 22:38:55 +0100 |
commit | 9a60da2834074d970ca063c210fe9d2f05c70532 (patch) | |
tree | b86ce16ec73449b2df9bdfcc8459e5bc1b54b80f /src/dbus-swap.c | |
parent | 3686ced6d76d72a7364db4616c14a164f9c1f01e (diff) | |
download | systemd-9a60da2834074d970ca063c210fe9d2f05c70532.tar.gz |
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.
Diffstat (limited to 'src/dbus-swap.c')
-rw-r--r-- | src/dbus-swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus-swap.c b/src/dbus-swap.c index 70cccdcab8..06acb22dcc 100644 --- a/src/dbus-swap.c +++ b/src/dbus-swap.c @@ -47,7 +47,7 @@ BUS_INTROSPECTABLE_INTERFACE \ "</node>\n" -const char bus_swap_interface[] = BUS_SWAP_INTERFACE; +const char bus_swap_interface[] _introspect_("Swap") = BUS_SWAP_INTERFACE; const char bus_swap_invalidating_properties[] = "What\0" |