ports/71001: [PATCH] audio/ices: respect CFLAGS during compile :)

Paul Seniura pdseniura at techie.com
Thu Aug 26 19:10:20 UTC 2004


>Number:         71001
>Category:       ports
>Synopsis:       [PATCH] audio/ices: respect CFLAGS during compile  :)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 26 19:10:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     "Paul Seniura" <pdseniura at techie.com>
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
State of Okla. D.O.T.
>Environment:
System: FreeBSD techpc04.okladot.state.ok.us 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Thu Aug 26 10:20:53 CDT 2004 root at techpc04.okladot.state.ok.us:/usr/obj/src/sys/IBM300SY_4BSD_Os i386


>Description:

The FreeBSD port skeleton Makefile for audio/ices wipes
out CFLAGS set in /etc/make.conf and/or elsewhere.


>How-To-Repeat:

Set CFLAGS in /etc/make.conf. 
Let the app build normally. 
See no specified CFLAGS in the report output.


>Fix:


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


===cut-here===
--- 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===


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.

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



More information about the freebsd-ports-bugs mailing list