[31521] trunk/base/Mk/macports.autoconf.mk.in

Anders F Björklund afb at macports.org
Tue Nov 27 01:49:48 PST 2007


Boey Maun Suang wrote:

> Hi everyone,
>
> Probably a stupid question, but:
>
>> LDFLAGS	 = -L/usr/local/lib @LDFLAGS@
>
> Should we really have '-L/usr/local/lib' in that line in 
> trunk/base/Mk/macports.autoconf.mk.in ?

Having it there (explicitly) makes things more predictable,
as it'll look in /usr/local for *both* headers and libraries.

see http://trac.macports.org/projects/macports/changeset/18978
(notorious to break are the "readline" and "iconv" libraries)

But maybe it should also be accompanied by a similar such explicit
-I/usr/local/include flag to CPPFLAGS, to make things "consistent".

GCC will look into /usr/local/include anyway (and /usr/include too),
but restating it again might make it more self-documenting ? Or not.

--anders



More information about the macports-dev mailing list