#1006: ExternalLibraries' configure.sh scripts handle /usr inconistently ------------------------------------+--------------------------------------- Reporter: rhaas | Owner: Type: defect | Status: new Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: Resolution: | Keywords: ExternalLibraries ------------------------------------+---------------------------------------
Comment (by eschnett):
Removing the standard paths is necessary since otherwise the wrong library may be found. Consider a system where GSL is installed both in /usr/lib and in /home/geek. Assume that the one in /usr/lib is outdated and should not be used. If /usr/lib makes it onto the search path before /home/geek, then the wrong library will be used. The same holds for include directories. The default paths are dangerous because they contain so many libraries.
With Homebrew, you should add /usr/local/lib to LIBDIRS, and maybe /usr/local/include to SYS_INC_DIRS.