Date: Mon, 20 Feb 2006 18:39:01 +0100 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= <gabor.kovesdan@t-hosting.hu> To: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Cc: hackers@freebsd.org Subject: Re: LDFLAGS setting Message-ID: <43F9FEB5.7020106@t-hosting.hu> In-Reply-To: <20060220172730.GA61906@stud.fit.vutbr.cz> References: <20060220172730.GA61906@stud.fit.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Divacky Roman wrote: >hi > >is is possible to set global LDFLAGS as its possible with CFLAGS? > >thnx > >roman > > > Yes, set it as you set CFLAGS in make.conf, but it depends on the particular software whether it respects this macro or not. If this doesn't work for a software, you have to dig in the Makefile and set LDFLAGS there to enforce your custom LDFLAGS. Anyway, you can set any macro in make.conf and the whole content of the file will be exported when running make, but note that this happens before processing a particular Makefile, so Makefiles can override your make.conf. Look at any Makefile. It'll override LDFLAGS if you find a line like this: LDFLAGS=-bla -bla And your make.conf will get priority if you see this: LDFLAGS?=-bla -bla There is also a third case. In this case these parameters will be appended to your default: LDFLAGS+=-bla -bla Gabor Kovesdan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43F9FEB5.7020106>