From ef2c15e04a2a8e0d565dc232e5d028ca96d02a70 Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 13 Jun 2026 16:23:43 +0000 Subject: [PATCH] Enable SHA1_SMALL for libstubs. On amd64 this reduces the sha1.o text size by 5169 bytes. --- distrib/special/libstubs/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrib/special/libstubs/Makefile b/distrib/special/libstubs/Makefile index 0cd0c8b54db..cc526bb8bc0 100644 --- a/distrib/special/libstubs/Makefile +++ b/distrib/special/libstubs/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.25 2026/03/10 06:34:50 deraadt Exp $ +# $OpenBSD: Makefile,v 1.26 2026/06/13 16:23:43 jsing Exp $ .include LIB= stubs @@ -34,7 +34,7 @@ SRCS+= aarch64_lse.c NOPIC= Yes NOPROFILE=Yes -CFLAGS+=-DSHA2_SMALL -UYP -DNO_LOG_BAD_DNS_RESPONSES \ +CFLAGS+=-DSHA1_SMALL -DSHA2_SMALL -UYP -DNO_LOG_BAD_DNS_RESPONSES \ -DFLOATING_POINT -DASRNODEBUG -D__LIBC__ -DMALLOC_SMALL \ -I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/hidden \ -I${LIBCSRCDIR}/asr -I${LIBCSRCDIR}/locale -I${LIBCSRCDIR}/gdtoa \