From 1c8766718f2e78fc601f60e7d1cb323995e870ab Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 12 Aug 2006 21:26:07 +0000 Subject: [PATCH] - Fix build on 4.X - Respect CC and CFLAGS PR: ports/101750 Submitted by: Babak Farrokhi (maintainer) --- security/lsh/Makefile | 2 ++ security/lsh/files/patch-nettle-openssl.c | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 security/lsh/files/patch-nettle-openssl.c diff --git a/security/lsh/Makefile b/security/lsh/Makefile index c40c1cd3d38b..83c1b38ecc2b 100644 --- a/security/lsh/Makefile +++ b/security/lsh/Makefile @@ -23,7 +23,9 @@ LIB_DEPENDS+= oop:${PORTSDIR}/devel/liboop GNU_CONFIGURE= yes USE_GMAKE= yes +USE_GCC= 3.4+ INSTALL_TARGET= install +CONFIGURE_ENV= PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}" CONFIGURE_ARGS+= --with-include-path=${LOCALBASE}/include CONFIGURE_ARGS+= --with-lib-path=${LOCALBASE}/lib CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" diff --git a/security/lsh/files/patch-nettle-openssl.c b/security/lsh/files/patch-nettle-openssl.c new file mode 100644 index 000000000000..9c31a80bda0b --- /dev/null +++ b/security/lsh/files/patch-nettle-openssl.c @@ -0,0 +1,10 @@ +--- src/nettle/examples/nettle-openssl.c.orig Thu Aug 10 13:24:43 2006 ++++ src/nettle/examples/nettle-openssl.c Thu Aug 10 13:24:53 2006 +@@ -36,6 +36,7 @@ + #define OPENSSL_DISABLE_OLD_DES_SUPPORT + + #include ++#include + + #include + #include