Revert "libkrb5: fix build on riscv"
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 24 Nov 2018 10:24:59 +0000 (11:24 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 24 Nov 2018 10:24:59 +0000 (11:24 +0100)
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>
package/libkrb5/libkrb5.mk

index 6534c069eef1d7c196a68604c26e3eeaa369096c..d9d7160ae8d554df6bf4ffb7bf30da2d6d7e1bb3 100644 (file)
@@ -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