From: Dan McGregor <[email protected]> Explicitly mark the dummy function as externally visible so that ld can find the symbol at link time. This is needed when the DISTRO_FEATURE ld-is-gold is not enabled; systemd uses -flto anyway.
Signed-off-by: Dan McGregor <[email protected]> --- meta/recipes-core/systemd/systemd/systemd-lto-fix.patch | 14 ++++++++++++++ meta/recipes-core/systemd/systemd_211.bb | 1 + 2 files changed, 15 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/systemd-lto-fix.patch diff --git a/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch b/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch new file mode 100644 index 0000000..90875e4 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/systemd-lto-fix.patch @@ -0,0 +1,14 @@ +diff --git a/src/test/test-udev.c b/src/test/test-udev.c +index b064744..3753c87 100644 +--- a/src/test/test-udev.c ++++ b/src/test/test-udev.c +@@ -36,7 +36,8 @@ + #include "udev.h" + #include "udev-util.h" + +-void udev_main_log(struct udev *udev, int priority, ++void __attribute__((externally_visible)) ++ udev_main_log(struct udev *udev, int priority, + const char *file, int line, const char *fn, + const char *format, va_list args) {} + diff --git a/meta/recipes-core/systemd/systemd_211.bb b/meta/recipes-core/systemd/systemd_211.bb index df632ab..ddf89b8 100644 --- a/meta/recipes-core/systemd/systemd_211.bb +++ b/meta/recipes-core/systemd/systemd_211.bb @@ -23,6 +23,7 @@ PV = "211+git${SRCPV}" SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol=git \ file://binfmt-install.patch \ + file://systemd-lto-fix.patch \ file://systemd-pam-configure-check-uclibc.patch \ file://systemd-pam-fix-execvpe.patch \ file://systemd-pam-fix-fallocate.patch \ -- 1.9.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
