Skip to contentSkip to conversation

gcc/gcc-final: Disable libcilkrts when using static libs

PATCH New Floris Bos 2 participants 2 messages Sep 8, 2016

lore
Share & tools
lore

Floris Bos

author
#0 lore raw

PATCH 1/1 gcc/gcc-final: Disable libcilkrts when using static libs

Disable libcilkrts when building static, as there is no static version:
https://software.intel.com/en-us/articles/intel-cilk-plus-runtime-library-libcilkrts-can-only-be-linked-dynamically/

Fixes the following toolchain build error when building for i386 and BR2_STATIC_LIBS=y + BR2_TOOLCHAIN_BUILDROOT_CXX=y is set:

../../../libcilkrts/runtime/sysdep-unix.c:603:19:
fatal error: dlfcn.h: No such file or directory

---
 package/gcc/gcc-final/gcc-final.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/gcc/gcc-final/gcc-final.mk +2 -1
index eea2f74..36f185e 100644
@@ -79,8 +79,9 @@ HOST_GCC_FINAL_CONF_OPTS += --disable-symvers
 endif
 
 # Disable shared libs like libstdc++ if we do static since it confuses linking
+# In that case also disable libcilkrts as there is no static version
 ifeq ($(BR2_STATIC_LIBS),y)
-HOST_GCC_FINAL_CONF_OPTS += --disable-shared
+HOST_GCC_FINAL_CONF_OPTS += --disable-shared --disable-libcilkrts
 else
 HOST_GCC_FINAL_CONF_OPTS += --enable-shared
 endif
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gcc/gcc-final: Disable libcilkrts when using static libs

Hello,

Quoted 6 lines · Floris Bos

Disable libcilkrts when building static, as there is no static version:
https://software.intel.com/en-us/articles/intel-cilk-plus-runtime-library-libcilkrts-can-only-be-linked-dynamically/

Fixes the following toolchain build error when building for i386 and BR2_STATIC_LIBS=y + BR2_TOOLCHAIN_BUILDROOT_CXX=y is set:

Quoted 7 lines

../../../libcilkrts/runtime/sysdep-unix.c:603:19:
fatal error: dlfcn.h: No such file or directory

---
 package/gcc/gcc-final/gcc-final.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com