Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jan 2012 21:42:03 -0600
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        FreeBSD Ports <freebsd-ports@FreeBSD.org>
Cc:        Stephen Montgomery-Smith <stephen@FreeBSD.org>
Subject:   Re: LDFLAGS mystery
Message-ID:  <4F1B858B.3000102@missouri.edu>
In-Reply-To: <4F1B7DFD.6080005@missouri.edu>
References:  <4F1B27ED.9070005@missouri.edu> <4F1B7DFD.6080005@missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/21/2012 09:09 PM, Stephen Montgomery-Smith wrote:
> On 01/21/2012 03:02 PM, Stephen Montgomery-Smith wrote:
>> If I build a port that uses "USE_FORTRAN", then the variable ${LDFLAGS}
>> has an extra space in it. For example
>>
>> %cd /usr/ports/math/lapack
>> %make -V LDFLAGS
>> -Wl,-rpath=/usr/local/lib/gcc46
>>
>> %make -V MAKE_ENV
>> .... LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc46" ...
>>
>> I am trying to create a port in which this creates problems.
>>
>> Where does the extra space at the beginning come from, and how do I get
>> rid of it?
>
> I solved the mystery. Inside /usr/share/mk/sys.mk is the line:
>
> LDFLAGS ?=
>
> I think that it is a bug in "make"

http://www.freebsd.org/cgi/query-pr.cgi?pr=164361



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