lcc_dynanmic problem when compiling R libraries

Today I wanted to install the evd library for R but somehow failed with such an error message:



ld: can't locate file for: -lcc_dynamic

make: *** [evd.so] Error 1

ERROR: compilation failed for package 'evd'

It seems like -lcc_dynamic isn’t really needed, though. So to disable this you have to change the /Library/Frameworks/R.framework/Resources/etc/Makeconf. Search for following lines:


LIBS =  -lcc_dynamic -lm -liconv

[...]

SHLIB_LIBADD = -lcc_dynamic

And remove “-lcc_dynamic” from both lines. At least evd seems to work now :)