Skip to contentSkip to conversation

log4cplus: remove gold linker setting

PATCH Superseded [email protected] 1 participant 2 messages Jul 31, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 log4cplus: remove gold linker setting

From: Mingli Yu <[email protected]>

After commit[3a7abb175 log4cplus: Fix build with gold linker] applied, with below logic in conf/local.conf MACHINE ??= "qemumips64" MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips" DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32" require conf/multilib.conf

There comes below build error:

 $ libn32-log4cplus
 | checking for the pthreads library -lpthread... no
 | configure: error: Requested threads support but no threads were found.

Actually the logic[CXXFLAGS += "-fuse-ld=gold"] is not needed in commit[3a7abb175 log4cplus: Fix build with gold linker], so remove it to fix the above build error.

---
 meta-oe/recipes-devtools/log4cplus/log4cplus_2.0.4.bb | 2 --
 1 file changed, 2 deletions(-)
meta-oe/recipes-devtools/log4cplus/log4cplus_2.0.4.bb +0 -2
index b396cabf3..566de2853 100644
@@ -18,5 +18,3 @@ UPSTREAM_CHECK_REGEX = "log4cplus-stable/(?P<pver>\d+(\.\d+)+)/"
 inherit autotools pkgconfig
 
 BBCLASSEXTEND = "native"
-
-CXXFLAGS += "-fuse-ld=gold"
Signature · 1 line
2.21.0
#1 lore raw

PATCH v2 1/1 log4cplus: remove gold linker setting

From: Mingli Yu <[email protected]>

After commit[3a7abb175 log4cplus: Fix build with gold linker] applied, with below logic in conf/local.conf MACHINE ??= "qemumips64" MULTILIB_GLOBAL_VARIANTS_append = " libn32" MULTILIBS ?= "multilib:lib32 multilib:libn32" DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips" DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32" require conf/multilib.conf

There comes below configure error:

 $ bitbake libn32-log4cplus
 | checking for the pthreads library -lpthread... no
 | configure: error: Requested threads support but no threads were found.

Actually the logic[CXXFLAGS += "-fuse-ld=gold"] is not needed in commit[3a7abb175 log4cplus: Fix build with gold linker], so remove it to fix the above configure error.

---
 meta-oe/recipes-devtools/log4cplus/log4cplus_2.0.4.bb | 2 --
 1 file changed, 2 deletions(-)
meta-oe/recipes-devtools/log4cplus/log4cplus_2.0.4.bb +0 -2
index b396cabf3..566de2853 100644
@@ -18,5 +18,3 @@ UPSTREAM_CHECK_REGEX = "log4cplus-stable/(?P<pver>\d+(\.\d+)+)/"
 inherit autotools pkgconfig
 
 BBCLASSEXTEND = "native"
-
-CXXFLAGS += "-fuse-ld=gold"
Signature · 1 line
2.21.0