diff options
author | Floris Bos <bos@je-eigen-domein.nl> | 2016-09-08 16:33:15 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-09-08 21:55:01 +0200 |
commit | 84c913035058e18cad9e95976233e193f0cf6b43 (patch) | |
tree | cc84efc12f3c5082f7f714b03350b539b2b887af /package/gcc | |
parent | 268e214b05dd7c35d57e71491e195ce4dcc78ded (diff) | |
download | buildroot-84c913035058e18cad9e95976233e193f0cf6b43.tar.gz buildroot-84c913035058e18cad9e95976233e193f0cf6b43.zip |
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
Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/gcc-final/gcc-final.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index eea2f74bd7..36f185eccf 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -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 |