From 0ab764f9ffe2ecfd84bde512ddedb2209b613d07 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 17 Mar 2006 20:47:45 +0000 Subject: Don't add every source directory to the -I path. Instead use CPPFLAGS.file to add the relevant directory for each file. Removes about 4000000 failed open() system calls from the libcrypto build, and reduces the compile time (on my system) from 154 seconds to 115 seconds. The arch/*/*.inc files need similar treatment. --- lib/libcrypto/stack.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/libcrypto/stack.inc') diff --git a/lib/libcrypto/stack.inc b/lib/libcrypto/stack.inc index 8e5fb6afb86..bf32ed5bc98 100644 --- a/lib/libcrypto/stack.inc +++ b/lib/libcrypto/stack.inc @@ -1,4 +1,4 @@ -# $NetBSD: stack.inc,v 1.4 2003/07/24 14:16:33 itojun Exp $ +# $NetBSD: stack.inc,v 1.5 2006/03/17 20:47:45 dsl Exp $ # # @(#) Copyright (c) 1995 Simon J. Gerraty # @@ -7,6 +7,10 @@ .PATH: ${OPENSSLSRC}/crypto/stack -CPPFLAGS+= -I${OPENSSLSRC}/crypto/stack -SRCS+=stack.c +STACK_SRCS = stack.c +SRCS += ${STACK_SRCS} + +.for cryptosrc in ${STACK_SRCS} +CPPFLAGS.${cryptosrc} = -I${OPENSSLSRC}/crypto/stack +.endfor -- cgit