|
@@ -76,6 +76,8 @@ HOST_GCC_FINAL_CONF_OPTS += "--with-multilib-list=m4a,m4a-nofpu"
|
|
|
HOST_GCC_FINAL_GCC_LIB_DIR = $(HOST_DIR)/$(GNU_TARGET_NAME)/lib/!m4*
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(BR2_GCC_SUPPORTS_LIBCILKRTS),y)
|
|
|
+
|
|
|
# libcilkrts does not support v8
|
|
|
ifeq ($(BR2_sparc),y)
|
|
|
HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts
|
|
@@ -86,10 +88,16 @@ ifeq ($(BR2_PTHREADS_NONE),y)
|
|
|
HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
+# disable libcilkrts as there is no static version
|
|
|
+HOST_GCC_FINAL_CONF_OPTS += --disable-libcilkrts
|
|
|
+endif
|
|
|
+
|
|
|
+endif # BR2_GCC_SUPPORTS_LIBCILKRTS
|
|
|
+
|
|
|
# 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 --disable-libcilkrts
|
|
|
+HOST_GCC_FINAL_CONF_OPTS += --disable-shared
|
|
|
else
|
|
|
HOST_GCC_FINAL_CONF_OPTS += --enable-shared
|
|
|
endif
|