Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 2/2] systemd: fix tests when not using gold
@ 2014-04-23 15:01 Dan McGregor
  2014-04-23 16:17 ` Burton, Ross
  2014-04-23 16:34 ` Saul Wold
  0 siblings, 2 replies; 9+ messages in thread
From: Dan McGregor @ 2014-04-23 15:01 UTC (permalink / raw)
  To: openembedded-core

From: Dan McGregor <dan.mcgregor@usask.ca>

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 <dan.mcgregor@usask.ca>
---
 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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-09  2:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23 15:01 [PATCH 2/2] systemd: fix tests when not using gold Dan McGregor
2014-04-23 16:17 ` Burton, Ross
     [not found]   ` <CACS+7ZR9BMcn=_cRVswCUSRWuY-QYH-LWXy1aUF-ORK-9HLQYw@mail.gmail.com>
2014-04-23 16:24     ` Burton, Ross
2014-04-23 16:34 ` Saul Wold
2014-04-23 16:43   ` Dan McGregor
2014-04-24  2:37     ` Khem Raj
2014-04-24 16:32       ` Dan McGregor
2014-04-28 21:36       ` Dan McGregor
2014-05-09  2:25         ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox