/usr/ports/devel/nspr has the same problem.
2008/6/17 Dongsheng Song <[EMAIL PROTECTED]>:
> # cd /usr/ports/print/ghostscript/gnu
> # make install
> ...
> checking for C compiler default output file name...
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> *** Error code 77
>
> Stop in /usr/ports/print/ghostscript/gnu (line 2114 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> *** Error code 1
>
> Stop in /usr/ports/print/ghostscript/gnu (line 1417 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> *** Error code 1
>
> Stop in /usr/ports/print/ghostscript/gnu (line 1937 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> # echo $CFLAGS
>
> When I set CFLAGS for make, all is OK:
>
> # CFLAGS="-I/usr/include" make install
>
> Dongsheng Song
>