From owner-cvs-all Sun Feb 27 13:41:19 2000 Delivered-To: cvs-all@freebsd.org Received: from reyim.ne.mediaone.net (reyim.ne.mediaone.net [24.218.251.241]) by hub.freebsd.org (Postfix) with ESMTP id 2FBEE37B5DE; Sun, 27 Feb 2000 13:39:57 -0800 (PST) (envelope-from bloom@acm.org) Received: from acm.org (localhost [127.0.0.1]) by reyim.ne.mediaone.net (8.9.3/8.9.3) with ESMTP id QAA00351; Sun, 27 Feb 2000 16:39:25 -0500 (EST) (envelope-from bloom@acm.org) Message-ID: <38B9998D.8842EB04@acm.org> Date: Sun, 27 Feb 2000 16:39:25 -0500 From: Jim Bloom Reply-To: bloom@acm.org X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Kris Kennaway Cc: Bill Fenner , obrien@FreeBSD.ORG, markm@FreeBSD.ORG, cvs@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/contrib/tcpdump print-esp.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk How about trying the following which doesn't try to access files outside of the build areas: .if exists(../../crypto) && !defined(NOSECURE) && !defined(NO_OPENSSL) DPADD+= ${LIBCRYPTO} ${LIBRSAGLUE} LDADD+= -lcrypto CFLAGS+= -I${CURDIR}/../../../crypto/openssl/crypto/des -DCRYPTO -DHAVE_LIBCRYPTO SRCS+= print-esp.c .endif Kris Kennaway wrote: > > On Sun, 27 Feb 2000, Bill Fenner wrote: > > > > > Wouldn't it be easier to just add the following to the Makefile? > > > > # if not NO_CRYPTO > > DPADD+= ${LIBCRYPTO} ${LIBRSAGLUE} > > LDADD+= -lcrypto -lRSAglue > > CFLAGS+= -I/usr/include/openssl -DCRYPTO -DHAVE_LIBCRYPTO > > # endif > > This should probably be something like (untested): > > .if exists(../../crypto) && !defined(NOSECURE) && !defined(NO_OPENSSL) > DPADD+= ${LIBCRYPTO} ${LIBRSAGLUE} > LDADD+= -lcrypto > CFLAGS+= -I${DESTDIR}/usr/include/openssl -DCRYPTO -DHAVE_LIBCRYPTO > SRCS+= print-esp.c > .endif > > The reason for the SRCS+= is that if someone is compiling NOSECURE or > NO_OPENSSL then they won't be getting libdes compatability either, and so > I don't think this will compile. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message