From owner-freebsd-ports Sun May 2 9:32:12 1999 Delivered-To: freebsd-ports@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 49D0515107 for ; Sun, 2 May 1999 09:32:04 -0700 (PDT) (envelope-from naddy@mips.rhein-neckar.de) Received: from mips.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id SAA23653 for freebsd-ports@freebsd.org; Sun, 2 May 1999 18:32:03 +0200 (CEST) (envelope-from naddy@mips.rhein-neckar.de) Received: by mips.rhein-neckar.de id m10dxzA-000WyeC (Debian Smail-3.2.0.101 1997-Dec-17 #2); Sun, 2 May 1999 17:16:52 +0200 (CEST) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: Build variables to respect besides CFLAGS? Date: 2 May 1999 17:16:49 +0200 Message-ID: <7ghq91$anf$1@mips.rhein-neckar.de> References: <7gansn$g6f$1@mips.rhein-neckar.de> To: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Okay, followup question: How do I get the build variables into makefiles that have them hardcoded? Currently I'm looking at a program whose initial makefiles construct a system type -- (e.g. "i386-freebsd-cc") and then proceed to source in include files for that system type, which better exist, and which contain definitions such as CC= echo "Compiling"; gcc CFLAGS= ... concatenation of a zillion other variables ... which are then used again by submakefiles etc. I don't see how I can trivially import CC, CFLAGS, etc from the environment there. Solutions I'm considering: - Patching the makefiles to include placeholders like CC= echo "Compiling", @CC@ CFLAGS= @CFLAGS@ ... and adding a configuration step where the actual values are substituted for the placeholders. - Throwing out the makefiles and the entire building procedure that come with the source package and putting in BSD makefiles of my own. Any recommendations? -- Christian "naddy" Weisgerber naddy@mips.rhein-neckar.de >H Deutsche Transhumanismus-Mailingliste echo 'subscribe trans-de' | mail majordomo@lists.rhein-neckar.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message