[62666] trunk/dports/devel/git-core/Portfile

Jeremy Lainé sharky at macports.org
Sun Jan 17 08:26:28 PST 2010

Ryan Schmidt wrote:
> On Jan 13, 2010, at 11:25, sharky at macports.org wrote:
>> set CFLAGS     "-Wall -O2 -I${prefix}/include ${configure.cc_archflags}"
>> -set LDFLAGS    "-L${prefix}/lib ${configure.ld_archflags}"
>> +set LDFLAGS    "-L${prefix}/lib"
>> build.args     CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
>>                CC=${configure.cc} \
> I'm curious why you're setting new variables CFLAGS and LDFLAGS, and not using the variables that already exist for this purpose, namely configure.cflags, configure.cppflags, configure.cxxflags, configure.ldflags, etc.

I did not write the original recipe, I just wanted it to compile when archflags are set.
Your way sounds better though!


More information about the macports-dev mailing list