Yocto Meta Virtualization
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH V2] ceph: set CXXFLAGS and CFLAGS
@ 2022-03-22 20:54 Sakib Sajal
  2022-03-24 12:51 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Sakib Sajal @ 2022-03-22 20:54 UTC (permalink / raw)
  To: meta-virtualization

In oe-core, the commit:
   a83623a54a Revert "cmake.bbclass: Set CXXFLAGS and CFLAGS"

drops compiler flags overrides for all cmake-based recipes,
causing the ceph compile to fail with the error:
  ld: cannot find crtn.o: No such file or directory

  collect2: error: ld returned 1 exit status

Add the override back for ceph to fix the build error.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
 recipes-extended/ceph/ceph_15.2.15.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-extended/ceph/ceph_15.2.15.bb b/recipes-extended/ceph/ceph_15.2.15.bb
index c72953a..17dbcf3 100644
--- a/recipes-extended/ceph/ceph_15.2.15.bb
+++ b/recipes-extended/ceph/ceph_15.2.15.bb
@@ -66,6 +66,9 @@ EXTRA_OECMAKE = "-DWITH_MANPAGE=OFF \
                  -DWITH_REENTRANT_STRSIGNAL=ON \
 "
 
+CXXFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+CFLAGS += "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
+
 export STAGING_DIR_HOST
 
 do_configure:prepend () {
-- 
2.25.1



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

end of thread, other threads:[~2022-03-24 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-22 20:54 [meta-virtualization][PATCH V2] ceph: set CXXFLAGS and CFLAGS Sakib Sajal
2022-03-24 12:51 ` Bruce Ashfield

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