[Buildroot] [PATCH] gcc: remove BR2_GCC_SHARED_LIBGCC option

Peter Korsgaard jacmet at uclibc.org
Thu Jul 11 14:27:41 UTC 2013


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 Thomas> Commit 6b48b4803450 ("add a know to enable/disable building a shared
 Thomas> libgcc"), from october 2006, isn't really as to why a
 Thomas> BR2_GCC_SHARED_LIBGCC option was needed. However, now that gcc has
 Thomas> been converted to the package infrastructure, it causes problems
 Thomas> because the host packages are always being passed --enable-shared
 Thomas> --disable-static, so re-adding --disable-shared on top of that break
 Thomas> things.

 Thomas> Moreover, our tests indicate that both a shared *and* a static version
 Thomas> of libgcc are built, and that linking dynamically and statically a
 Thomas> program that uses libgcc_s gives correct results: dynamically linked
 Thomas> against libgcc_s in the first case, statically linked in the second
 Thomas> case.

 Thomas> Therefore, it appears that this option is no longer necessary, and
 Thomas> removing it has the advantage of fixing the builds of
 Thomas> qemu_mips64_malta_defconfig and qemu_sparc_ss10_defconfig, both of
 Thomas> which had BR2_GCC_SHARED_LIBGCC not enabled.

COmmitted, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list