summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2016-08-17 22:05:03 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2016-08-17 22:05:03 +0200
commit1509178dc45c3270fe9b238da63986e087aabea7 (patch)
tree17a44ed5d967d25da2ab35718d6bbfcc30061f34
parentc0f347b0e97c654853e7d21aa2f7a4e6902f2a6c (diff)
downloadembtoolkit-1509178dc45c3270fe9b238da63986e087aabea7.tar.gz
embtoolkit-1509178dc45c3270fe9b238da63986e087aabea7.tar.bz2
embtoolkit-1509178dc45c3270fe9b238da63986e087aabea7.tar.xz
Toolchain: llvm/clang: workaround autoconf incorrectly detecting if futimens is supported
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--core/toolchain/llvm/llvm/llvm.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/toolchain/llvm/llvm/llvm.mk b/core/toolchain/llvm/llvm/llvm.mk
index 33ae4e5..401c03b 100644
--- a/core/toolchain/llvm/llvm/llvm.mk
+++ b/core/toolchain/llvm/llvm/llvm.mk
@@ -48,6 +48,15 @@ LLVM_HOST_CONFIGURE_OPTS += --enable-optimized --disable-jit --enable-zlib
LLVM_HOST_CONFIGURE_OPTS += --with-bug-report-url=$(EMBTK_BUGURL)
LLVM_HOST_CONFIGURE_OPTS += --with-binutils-include=$(__embtk_binutils_inc)
+LLVM_HOST_CONFIGURE_ENV :=
+ifeq ($(embtk_buildhost-freebsd),y)
+ifeq ($(call embtk_ge,$(embtk_buildhost-freebsd_version),1100056),y)
+LLVM_HOST_CONFIGURE_ENV += ac_cv_func_futimens=yes
+else
+LLVM_HOST_CONFIGURE_ENV += ac_cv_func_futimens=no
+endif
+endif
+
LLVM_HOST_MAKE_OPTS := NO_UNITTESTS=1
LLVM_HOST_MAKE_OPTS += CLANG_VENDOR="EmbToolkit [v$(EMBTK_VERSION)]"