summaryrefslogtreecommitdiffstats
path: root/package/gcc/gcc.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-07-08 17:59:45 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2013-07-11 16:26:52 +0200
commitf03a9be4c323d0d305c7d55effe997dd1f2e6f48 (patch)
treeafbd442079ee1503a9e957fc0f1a53ae2d9ceead /package/gcc/gcc.mk
parent2b10ef9f09220b6cea3fb53acb3f61c66a58b6cb (diff)
downloadbuildroot-novena-f03a9be4c323d0d305c7d55effe997dd1f2e6f48.tar.gz
buildroot-novena-f03a9be4c323d0d305c7d55effe997dd1f2e6f48.zip
gcc: remove BR2_GCC_SHARED_LIBGCC option
Commit 6b48b4803450 ("add a know to enable/disable building a shared libgcc"), from october 2006, isn't really as to why a BR2_GCC_SHARED_LIBGCC option was needed. However, now that gcc has been converted to the package infrastructure, it causes problems because the host packages are always being passed --enable-shared --disable-static, so re-adding --disable-shared on top of that break things. Moreover, our tests indicate that both a shared *and* a static version of libgcc are built, and that linking dynamically and statically a program that uses libgcc_s gives correct results: dynamically linked against libgcc_s in the first case, statically linked in the second case. Therefore, it appears that this option is no longer necessary, and removing it has the advantage of fixing the builds of qemu_mips64_malta_defconfig and qemu_sparc_ss10_defconfig, both of which had BR2_GCC_SHARED_LIBGCC not enabled. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gcc/gcc.mk')
-rw-r--r--package/gcc/gcc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index d38629d15..8bd65fcd5 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -40,7 +40,7 @@ endef
# Apply patches
#
-ifeq ($(ARCH)-$(BR2_GCC_SHARED_LIBGCC),powerpc-y)
+ifeq ($(ARCH),powerpc)
ifneq ($(BR2_SOFT_FLOAT),)
define HOST_GCC_APPLY_POWERPC_PATCH
support/scripts/apply-patches.sh $(@D) package/gcc/$(GCC_VERSION) powerpc-link-with-math-lib.patch.conditional