aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 11:24:59 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-24 11:24:59 +0100
commit37751a97d9c8a8b35f1942228547a954f7ed9098 (patch)
tree4ebbe7e55e481df8903ba6d752b3f2c3d4c49ef8
parent3e2fc295ca57ff03600472589ffa57d5019aeab0 (diff)
downloadbuildroot-37751a97d9c8a8b35f1942228547a954f7ed9098.tar.gz
buildroot-37751a97d9c8a8b35f1942228547a954f7ed9098.tar.bz2
Revert "libkrb5: fix build on riscv"
This reverts commit e86af4c3961e1f30f2d48a8946a35edd95ab3ec4, which is no longer needed now that the RISC-V gcc has been patched to define _REENTRANT when -pthread is passed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/libkrb5/libkrb5.mk9
1 files changed, 1 insertions, 8 deletions
diff --git a/package/libkrb5/libkrb5.mk b/package/libkrb5/libkrb5.mk
index 6534c069ee..d9d7160ae8 100644
--- a/package/libkrb5/libkrb5.mk
+++ b/package/libkrb5/libkrb5.mk
@@ -52,14 +52,7 @@ else
LIBKRB5_CONF_OPTS += --without-readline
endif
-ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
-# gcc on riscv doesn't define _REENTRANT when -pthread is passed while
-# it should. Compensate this deficiency here otherwise libkrb5 configure
-# script doesn't find that thread support is enabled.
-ifeq ($(BR2_riscv),y)
-LIBKRB5_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_REENTRANT"
-endif
-else
+ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
LIBKRB5_CONF_OPTS += --disable-thread-support
endif