diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2018-11-11 18:52:10 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-11-11 22:08:25 +0100 |
commit | e86af4c3961e1f30f2d48a8946a35edd95ab3ec4 (patch) | |
tree | 277714aaa205fec35fbaf1498babecfc7df46d82 | |
parent | 2e57e835bf26a8f554033f8c1998d1a34fce16a5 (diff) | |
download | buildroot-e86af4c3961e1f30f2d48a8946a35edd95ab3ec4.tar.gz buildroot-e86af4c3961e1f30f2d48a8946a35edd95ab3ec4.zip |
libkrb5: fix build on riscv
Define _REENTRANT otherwise pthread detection will fail
Fixes:
- http://autobuild.buildroot.org/results/39a51d0c3feab74edd8a17c9174d031ccc7ffe1d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r-- | package/libkrb5/libkrb5.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/libkrb5/libkrb5.mk b/package/libkrb5/libkrb5.mk index d9d7160ae8..6534c069ee 100644 --- a/package/libkrb5/libkrb5.mk +++ b/package/libkrb5/libkrb5.mk @@ -52,7 +52,14 @@ else LIBKRB5_CONF_OPTS += --without-readline endif -ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +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 LIBKRB5_CONF_OPTS += --disable-thread-support endif |