From 353a877ee1855437d2cb581e4b7d3dc2b166431e Mon Sep 17 00:00:00 2001 From: Andrew Pantyukhin Date: Sat, 28 Jul 2007 11:58:31 +0000 Subject: [PATCH] - Respect CXX and CFLAGS better --- archivers/lzma/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivers/lzma/Makefile b/archivers/lzma/Makefile index b8963abf2c80..a82dd561c09a 100644 --- a/archivers/lzma/Makefile +++ b/archivers/lzma/Makefile @@ -22,6 +22,7 @@ BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Compress/LZMA_Alone MAKEFILE= makefile.gcc PLIST_FILES= bin/lzma CFLAGS+= -D_LZMA_SYSTEM_SIZE_T +MAKE_ENV+= CXX="${CXX}" PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt @@ -29,7 +30,7 @@ post-patch: @${REINPLACE_CMD} -e 's|4\.49|${DISTVERSION}|' \ ${BUILD_WRKSRC}/LzmaAlone.cpp @${REINPLACE_CMD} -e \ - 's|^CXX.*||;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|'\ + '/^CXX/d;s|CXX_C|CC|;s|^CFLAGS =|CFLAGS +=|;s|-o|${CFLAGS} -o|'\ ${BUILD_WRKSRC}/${MAKEFILE} do-install: