Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 1999 13:24:09 -0400
From:      Tim Vanderhoek <vanderh@ecf.utoronto.ca>
To:        Christian Weisgerber <naddy@mips.rhein-neckar.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Build variables to respect besides CFLAGS?
Message-ID:  <19990502132408.A43527@mad>
In-Reply-To: <7ghq91$anf$1@mips.rhein-neckar.de>; from Christian Weisgerber on Sun, May 02, 1999 at 05:16:49PM %2B0200
References:  <7gansn$g6f$1@mips.rhein-neckar.de> <7ghq91$anf$1@mips.rhein-neckar.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 02, 1999 at 05:16:49PM +0200, Christian Weisgerber wrote:
> 
> CC=     echo "Compiling"; gcc
> CFLAGS= ... concatenation of a zillion other variables ...

Do you want to keep the "concatenation of a zillion other variables"
or not?  Either

	CFLAGS=${CFLAGS} perl -pi.orig -e \
		's/^(CFLAGS=.*)/$1$ENV{CFLAGS}/'

or

	CFLAGS=${CFLAGS} perl -pi.orig -e \
		's/^CFLAGS\=.*/CFLAGS\=$ENV{CFLAGS}/'

respectively, should work.  Another idea is to try adding 

.include "my_variable_overrides"

at the correct place in the source Makefile.  Actually, that's a lot
nicer.  I'm surprised I never thought of it before.  ;-)


> - Throwing out the makefiles and the entire building procedure that come
>   with the source package and putting in BSD makefiles of my own.

Ugh.


-- 
This .sig is not innovative, witty, or profund.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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