ports/security/cryptlib/files/patch-tools_ccopts.sh
Alex Dupre 53b58221ad security/cryptlib: update to 3.4.7 release.
PR:		282203
Submitted by:	Alven <alster@vinterdalen.se>
Security:	CVE-2024-0202
2024-10-22 17:33:29 +02:00

11 lines
635 B
Bash

--- 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.