ports/163173: [patch] mail/alpine: respect CC/CFLAGS
Jan Beich
jbeich at tormail.net
Sat Dec 10 21:40:10 UTC 2011
>Number: 163173
>Category: ports
>Synopsis: [patch] mail/alpine: respect CC/CFLAGS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 10 21:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
# slightly different from pointyhat
$ export PATH=~/.bin:$PATH
$ for cc in CC cc c++ gcc g++ cpp; do ln -s /usr/bin/false ~/.bin/${cc}; done
>Description:
CC/CXX are already exported before CONFIGURE_ENV in bsd.port.mk,
so Makefile at 1.14 commit was a no-op. The port lacks CC/CFLAGS
override for a non-automake makefile, e.g.
imap/src/osdep/unix/Makefile:
GCCOPTLEVEL= -O2
...
GCCCFLAGS= -g $(GCCOPTLEVEL) -pipe -fno-omit-frame-pointer
GCC4CFLAGS= $(GCCCFLAGS) -Wno-pointer-sign
...
CC=cc
>How-To-Repeat:
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/pico-alpine-2.00_1.log
>Fix:
--- cc.diff begins here ---
Index: mail/alpine/Makefile
===================================================================
RCS file: /a/.csup/ports/mail/alpine/Makefile,v
retrieving revision 1.14
diff -u -p -r1.14 Makefile
--- mail/alpine/Makefile 26 Jun 2011 07:12:53 -0000 1.14
+++ mail/alpine/Makefile 10 Dec 2011 20:45:31 -0000
@@ -48,7 +48,7 @@ CONFIGURE_ARGS+=--with-system-pinerc=${P
.endif
CONFIGURE_ARGS+=--with-debug-level=2
-CONFIGURE_ENV+= CC=${CC} CXX=${CXX}
+MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}"
USE_OPENSSL= yes
--- cc.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list