Bug 71001

Summary: [PATCH] audio/ices: respect CFLAGS during compile :)
Product: Ports & Packages Reporter: Paul Seniura <pdseniura>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: lofi
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Paul Seniura 2004-08-26 20:10:19 UTC
The FreeBSD port skeleton Makefile for audio/ices wipes
out CFLAGS set in /etc/make.conf and/or elsewhere.

Fix: Apply this patch to the port-side Makefile
(not the original project):


===cut-here===


We couldn't get this port to compile with -mcpu=pentium2
et al. until this patch is applied. 

The project's own makefile adds its own -f flags to
induce more optimizations.  This will continue to
be proper after this patch.


  --  thx, Paul Seniura
           System Specialist
           State of Okla. D.O.T.--QOzvQDUtcKijl6qsDoFoO0qEb8rIv0khAfll7bverfr3Jhwl
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile_orig	Wed Aug 25 17:00:06 2004
+++ Makefile	Thu Aug 26 12:20:04 2004
@@ -18,7 +18,7 @@
 		vorbis.3:${PORTSDIR}/audio/libvorbis \
 		xml2.5:${PORTSDIR}/textproc/libxml2
 
-CONFIGURE_ENV=	CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_ENV=	CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
 USE_GMAKE=	yes
 USE_LIBTOOL_VER=	13
===cut-here===
How-To-Repeat: 
Set CFLAGS in /etc/make.conf. 
Let the app build normally. 
See no specified CFLAGS in the report output.
Comment 1 Michael Nottebrock freebsd_committer freebsd_triage 2004-08-26 21:22:13 UTC
State Changed
From-To: open->closed

Committed, thanks.