*BSD News Article 59893


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!news.duke.edu!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!plug.news.pipex.net!pipex!tube.news.pipex.net!pipex!dish.news.pipex.net!pipex!handbag.tecc.co.uk!parody.tecc.co.uk!not-for-mail
From: james@parody.tecc.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to compile a port with CFLAGS
Date: 18 Jan 1996 01:13:50 -0000
Organization: A FreeBSD box
Lines: 29
Message-ID: <4dk6se$4ms@parody.tecc.co.uk>
References: <4ddp9o$3ev8@info4.rus.uni-stuttgart.de> <4dhkp1$r9@uriah.heep.sax.de>
NNTP-Posting-Host: localhost

In article <4dhkp1$r9@uriah.heep.sax.de>,
J Wunsch <joerg_wunsch@uriah.heep.sax.de> wrote:
>schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt) writes:
>
>> but the CFLAGS did not make it through. It still used -O.
>> When I compile a GNU program, the latter approach does it.
>> Why is a "port" make apparently not passing CFLAGS?
>> Or am I missing something obvious?
>
>I haven't looked, but the CFLAGS are most likely imported from
>the bsd.port.mk system.  Anyway, changing /etc/make.conf should
>help.

They get imported by the top-level make all right, but they don't get
passed on to the make in $WRKDIR:-

# make -n do-build
(cd /usr/ports/graphics/povray/work; \
make PREFIX=/usr/local X11BASE=/usr/X11R6 -f Makefile all)

I hit this problem earlier on today. As far as I can make out, only 
$PREFIX and $X11BASE seem to get passed by default (at least that's 
the case for all the ones I looked at).

James

James
-- 
Segmentation fault (core dumped): cannot find file '.signature'