diff options
| author | dsl <dsl@NetBSD.org> | 2006-03-17 20:47:45 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2006-03-17 20:47:45 +0000 |
| commit | 0ab764f9ffe2ecfd84bde512ddedb2209b613d07 (patch) | |
| tree | e63be9fce935170971c7205790777051adcac995 /lib/libcrypto/stack.inc | |
| parent | cbe6a15c0124a7e8c83092dde83c1f66f28422b9 (diff) | |
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.
Diffstat (limited to 'lib/libcrypto/stack.inc')
| -rw-r--r-- | lib/libcrypto/stack.inc | 10 |
1 files changed, 7 insertions, 3 deletions
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 |
