ports/122931: archivers/lzma does not respect CC

Frank Fenor frank at fenor.de
Sun Apr 20 13:00:02 UTC 2008


>Number:         122931
>Category:       ports
>Synopsis:       archivers/lzma does not respect CC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 20 13:00:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Frank Fenor
>Release:        FreeBSD 7.0-PRERELEASE
>Organization:
>Environment:
FreeBSD konzentrisch.de 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #5: Tue Feb  5 00:33:58 CET 2008
>Description:
archivers/lzma does respect CFLAGS but not CC which causes a problem, if CFLAGS contains settings that only work with the compiler in CC. On my machine this is "gcc43" with "-march=core2" for example.

Since the upstream is already prepared to use CC, we just need to set it. My patch does this.
>How-To-Repeat:
Try to build archivers/lzma with GCC 4.3 optimized for Intels Core2 Architecture.
>Fix:
cd /usr/ports/archivers/lzma && patch -p0 < patch.txt

Patch attached with submission follows:

--- Makefile.vanilla	2008-04-20 14:35:57.000000000 +0200
+++ Makefile	2008-04-20 14:36:08.000000000 +0200
@@ -22,7 +22,7 @@
 MAKEFILE=	makefile.gcc
 PLIST_FILES=	bin/${PORTNAME}
 CFLAGS+=	-D_LZMA_SYSTEM_SIZE_T
-MAKE_ENV+=	CXX="${CXX}" CC="${CC}"
+MAKE_ENV+=	CXX="${CXX}"
 PORTDOCS=	7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt
 
 post-patch:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list