diff options
| -rw-r--r-- | meta-phosphor/classes/flto-automake.bbclass | 6 | ||||
| -rw-r--r-- | meta-phosphor/recipes-phosphor/fans/phosphor-pid-control_git.bb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/meta-phosphor/classes/flto-automake.bbclass b/meta-phosphor/classes/flto-automake.bbclass new file mode 100644 index 000000000..517bd5ea5 --- /dev/null +++ b/meta-phosphor/classes/flto-automake.bbclass @@ -0,0 +1,6 @@ +inherit autotools + +# use gcc equivalents of AR and RANLIB +# to use -flto with shared libs +PACKAGECONFIG_CONFARGS += " AR=${TARGET_PREFIX}gcc-ar \ + RANLIB=${TARGET_PREFIX}gcc-ranlib" diff --git a/meta-phosphor/recipes-phosphor/fans/phosphor-pid-control_git.bb b/meta-phosphor/recipes-phosphor/fans/phosphor-pid-control_git.bb index ef0b5436a..8293c6137 100644 --- a/meta-phosphor/recipes-phosphor/fans/phosphor-pid-control_git.bb +++ b/meta-phosphor/recipes-phosphor/fans/phosphor-pid-control_git.bb @@ -6,7 +6,7 @@ PV = "0.1+git${SRCPV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" -inherit autotools pkgconfig +inherit flto-automake pkgconfig inherit pythonnative inherit phosphor-pid-control |

