Mono build error

Rainer Müller raimue at macports.org
Sat Jan 21 12:11:20 PST 2012


On 2012-01-11 22:37 , Ryan Schmidt wrote:
> Ok, so I agree Xcode is installed and working. The log shows the
> error is:
> 
> ld: library not found for -lintl
> 
> This is because although the test in question is using
> -I/opt/local/include to locate the headers, it is not using
> -L/opt/local/lib to locate the libraries. This had not previously
> been a problem, before Xcode 4.2, because we were not using clang
> then, and clang is the only compiler that doesn't use the CPATH and
> LIBRARY_PATH variables we set.
> 
> http://lists.macosforge.org/pipermail/macports-dev/2011-August/015543.html

Actually the fault was that the Portfile overwrites configure.ldflags
completely. Other compilers used LIBRARY_PATH as a fallback, clang failed.

Fixed now by using configure.ldflags-append:
http://trac.macports.org/changeset/89228

Rainer


More information about the macports-users mailing list