From d33488bb0ceee467a5af2407324cab0e3c359907 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 15 Jul 2020 18:21:31 +0200 Subject: [PATCH] build/base: fixup FreeBSD 12.1 build issue with missing host file --- build/base.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build/base.sh b/build/base.sh index eee3527..a2f6d52 100644 --- a/build/base.sh +++ b/build/base.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (c) 2014-2019 Franco Fichtner +# Copyright (c) 2014-2020 Franco Fichtner # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -41,6 +41,16 @@ fi git_branch ${SRCDIR} ${SRCBRANCH} SRCBRANCH git_describe ${SRCDIR} +CLANGFIXUPFILE=${SRCDIR}/contrib/compiler-rt/lib/cfi/cfi_blacklist.txt +CLANGFIXUPDIR=/usr/lib/clang/8.0.1/share + +if [ -f ${CLANGFIXUPFILE} ]; then + # FreeBSD 12.1 requires this file to be installed in + # the host, but it is not in the default install. + mkdir -p ${CLANGFIXUPDIR} + cp ${CLANGFIXUPFILE} ${CLANGFIXUPDIR} +fi + MAKE_ARGS=" TARGET_ARCH=${PRODUCT_ARCH} TARGET=${PRODUCT_TARGET}