Skip to contentSkip to conversation

mongodb: Pass OBJCOPY to scons so it does not use it from host

PATCH New Armin Kuster 1 participant 1 message Apr 18, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mongodb: Pass OBJCOPY to scons so it does not use it from host

From: Khem Raj <[email protected]>

Fixes
objcopy: Unable to recognise the format of the input file `build/opt/mongo/mongos'

Cc Vincent Prince <[email protected]>
(cherry picked from commit e91940073af4e19cd18a09cd12aa381ff60fe54b)

[Fix up for Dunfell context:
also fixes Please add a conforming MONGO_VERSION=x.y.z[-extra] as an argument to SCons]

---
 .../meta-python/recipes-dbs/mongodb/mongodb_git.bb              | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +2 -0
index 7ef8f69827..cc15a8de31 100644
@@ -56,6 +56,8 @@ EXTRA_OESCONS = "--prefix=${D}${prefix} \
                  LINKFLAGS='${LDFLAGS}' \
                  CXXFLAGS='${CXXFLAGS}' \
                  TARGET_ARCH=${TARGET_ARCH} \
+                 MONGO_VERSION=${PV} \
+                 OBJCOPY=${OBJCOPY} \
                  --ssl \
                  --disable-warnings-as-errors \
                  --use-system-zlib \
Signature · 1 line
2.25.1