Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 14:05:59 -0500 (CDT)
From:      "Paul Seniura" <pdseniura@techie.com>
To:        <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        lofi@FreeBSD.org
Subject:   ports/71001: [PATCH] audio/ices: respect CFLAGS during compile  :)
Message-ID:  <20040826190559.5C1BF5CA3@techpc04.okladot.state.ok.us>
Resent-Message-ID: <200408261910.i7QJAJ7P066688@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040826190559.5C1BF5CA3>