missing $CC and $LD settings in some packages

Cameron Simpson cs at zip.com.au
Thu May 22 18:59:37 PDT 2008


Recent instance: I just rebuilt mercurial using "port upgrade". The first
attempt failed with a failure I see quite frequently: a command line which
commences with "-DNDEBUG ...". This is symptomatic of missing the "cc/gcc"
or "ld" commands, in turn symptomatic of a Makefile using $(CC)/$(LD) and
expecting to inherit them from the shell environment. Dodgy but common.

My usual workaround is to export CC=gcc and LD=ld and rerun port. And in
turn, I had to add:
  extra_env         CC LD
to my macports.conf.

Is this just an old busted config on my part, or is there a real
configuration deficiency here?

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

We might have been the hundred-millionth or so paying customers at
one of the local screenings of "Jurassic Park."  After all the hoopla,
the kid dismissed it as "Not bad for a dinosaur movie."  And, as if
to add insult to injury, she was right.
        - jtchew at netcom.com (Joe Chew)


More information about the macports-users mailing list