summaryrefslogtreecommitdiff
path: root/security/cryptlib/files/patch-tools_ccopts.sh
blob: ad81eac26a3da39b75b514cc24facc68e5ee734e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- tools/ccopts.sh.orig	2023-07-11 00:09:58 UTC
+++ tools/ccopts.sh
@@ -603,7 +603,7 @@ if [ $ISCLANG -gt 0 ] && [ $ISSPECIAL -eq 0 ] ; then
 
 if [ $ISCLANG -gt 0 ] && [ $ISSPECIAL -eq 0 ] ; then
 	if [ $COMPILER_VER -ge 47 ] ; then
-		if [ "$OSNAME" = "Darwin" ] || [ "$OSNAME" = "OpenBSD" ] ; then
+		if [ "$OSNAME" = "Darwin" ] || [ "$OSNAME" = "OpenBSD" ] || [ "$OSNAME" = "FreeBSD" -a "$ARCH" = "arm" ] || [ "$OSNAME" = "FreeBSD" -a "$ARCH" = "powerpc" ]; then
 			# The versions of clang shipped with OS X or OpenBSD don't
 			# support -fsanitize=safe-stack even as late as clang 12, so
 			# there's not much that we can do.