Skip to contentSkip to conversation

db: Use cross libtool

PATCH New Khem Raj 1 participant 1 message Jul 12, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 db: Use cross libtool

Reintroduce the use of cross-libtool when building the target package this fails otherwise with clang

| ./libtool --mode=execute true db_printlog
| /usr/lib/libstdc++.so: file not recognized: File format not recognized
| clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
---
 meta/recipes-support/db/db_5.3.28.bb | 1 +
 meta/recipes-support/db/db_6.0.30.bb | 1 +
 2 files changed, 2 insertions(+)
meta/recipes-support/db/db_5.3.28.bb +1 -0
index 6b0e76b..0b51a1d 100644
@@ -70,6 +70,7 @@ MUTEX = ""
 MUTEX_arm = "${ARM_MUTEX}"
 MUTEX_armeb = "${ARM_MUTEX}"
 EXTRA_OECONF += "${MUTEX} STRIP=true"
+EXTRA_OEMAKE_append_class-target = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
 
 AUTOTOOLS_SCRIPT_PATH = "${S}/dist"
 
meta/recipes-support/db/db_6.0.30.bb +1 -0
index 0852820..072cbdf 100644
@@ -87,6 +87,7 @@ MUTEX = ""
 MUTEX_arm = "${ARM_MUTEX}"
 MUTEX_armeb = "${ARM_MUTEX}"
 EXTRA_OECONF += "${MUTEX}"
+EXTRA_OEMAKE_append_class-target = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
 EXTRA_OEMAKE += "STRIP=true"
 
 do_compile_prepend() {
Signature · 1 line
2.9.0