[PATCH openbmc] Resolve relocation warnings with build
OpenBMC Patches
openbmc-patches at stwcx.xyz
Sun Jan 24 11:10:20 AEDT 2016
From: Chris Austen <austenc at us.ibm.com>
Yocto's QA service identified issues with the build
The -fpic option was not included in .so files.
Resovles issue https://github.com/openbmc/openbmc/issues/105
---
meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb | 2 +-
meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-oem.bb | 1 +
meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb | 3 +++
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
index 72d847d..5eed1f4 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-fru.bb
@@ -14,7 +14,7 @@ DEPENDS += "systemd \
RDEPENDS_${PN} += "libsystemd"
-TARGET_CFLAGS += "-std=gnu++14"
+TARGET_CFLAGS += " -fpic -std=gnu++14"
SRC_URI += "git://github.com/openbmc/ipmi-fru-parser"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-oem.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-oem.bb
index fa3e1bf..f7c0394 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-oem.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid-oem.bb
@@ -10,6 +10,7 @@ inherit obmc-phosphor-license
DEPENDS += "systemd \
host-ipmid \
"
+TARGET_CFLAGS += "-fpic"
RDEPENDS_${PN} += "libsystemd"
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
index 2a8aa07..24c4045 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
@@ -12,6 +12,9 @@ inherit obmc-phosphor-license
inherit obmc-phosphor-sdbus-service
inherit obmc-phosphor-c-daemon
+TARGET_CFLAGS += "-fpic"
+
+
SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
SRCREV = "e90d8bf6a342649dba2fd1589a3cddb3cd051bb1"
--
2.6.4
More information about the openbmc
mailing list